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

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

Housekeeping

  • Property svn:executable set to *
File size: 1.8 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         _task_exit();
24
25void         _context_switch();
26
27unsigned int _local_task_id();
28
29unsigned int _global_task_id();
30
31unsigned int _thread_id();
32
33unsigned int _procs_number( unsigned int  cluster_id, 
34                            unsigned int* number );
35
36unsigned int _vobj_get_vbase( char*         vspace_name, 
37                              char*         vobj_name, 
38                              unsigned int* vobj_vbase );
39
40unsigned int _vobj_get_length( char*         vspace_name, 
41                               char*         vobj_name, 
42                               unsigned int* vobj_length );
43
44unsigned int _get_xy_from_ptr( void*          ptr,
45                               unsigned int*  x,
46                               unsigned int*  y );
47
48
49#endif
50
51// Local Variables:
52// tab-width: 4
53// c-basic-offset: 4
54// c-file-offsets:((innamespace . 0)(inline-open . 0))
55// indent-tabs-mode: nil
56// End:
57// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
58
Note: See TracBrowser for help on using the repository browser.