source: soft/giet_vm/giet_kernel/sys_handler.h @ 428

Last change on this file since 428 was 428, checked in by alain, 10 years ago

Introducing fixed format (X_WIDTH / Y_WIDTH / P_WIDTH) for processor index.

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1///////////////////////////////////////////////////////////////////////////////////
2// File     : sys_handler.h
3// Date     : 01/04/2012
4// Author   : alain greiner and joel porquet
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7
8#ifndef _SYS_HANDLER_H
9#define _SYS_HANDLER_H
10
11//////////////////////////////////////////////////////////////////////////////////
12//     Syscall Vector Table (indexed by syscall index)
13//////////////////////////////////////////////////////////////////////////////////
14
15extern const void * _syscall_vector[64];
16
17//////////////////////////////////////////////////////////////////////////////////
18// Prototypes os the syscall handlers (other than peripheral drivers)
19//////////////////////////////////////////////////////////////////////////////////
20
21void         _sys_ukn();
22
23void         _proc_xyp( unsigned int* x,
24                        unsigned int* y,
25                        unsigned int* p );
26
27void         _task_exit();
28
29void         _context_switch();
30
31unsigned int _local_task_id();
32
33unsigned int _global_task_id();
34
35unsigned int _thread_id();
36
37unsigned int _procs_number( unsigned int  cluster_id, 
38                            unsigned int* number );
39
40unsigned int _vobj_get_vbase( char*         vspace_name, 
41                              char*         vobj_name, 
42                              unsigned int* vobj_vbase );
43
44unsigned int _vobj_get_length( char*         vspace_name, 
45                               char*         vobj_name, 
46                               unsigned int* vobj_length );
47
48unsigned int _get_xy_from_ptr( void*          ptr,
49                               unsigned int*  x,
50                               unsigned int*  y );
51
52
53#endif
54
55// Local Variables:
56// tab-width: 4
57// c-basic-offset: 4
58// c-file-offsets:((innamespace . 0)(inline-open . 0))
59// indent-tabs-mode: nil
60// End:
61// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
62
Note: See TracBrowser for help on using the repository browser.