source: soft/giet_vm/sys/sys_handler.h @ 255

Last change on this file since 255 was 255, checked in by meunier, 11 years ago
  • Added a syscall and some user functions to manipulate the Simulation Helper
  • Changed the the way the Vseg -> Pseg mapping is made during the boot to better utilize the address space (+ adaptation of the algorithm in memo)
  • Fixed a bug in boot_init (vobj_init): the vobj initialization could only be made for the first application (ptpr was not changed)
File size: 1.6 KB
RevLine 
[158]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//////////////////////////////////////////////////////////////////////////////////
[228]12//     Syscall Vector Table (indexed by syscall index)
[158]13//////////////////////////////////////////////////////////////////////////////////
14
[255]15extern const void * _syscall_vector[64];
[158]16
17//////////////////////////////////////////////////////////////////////////////////
18// Prototypes os the syscall handlers (other than peripheral drivers)
19//////////////////////////////////////////////////////////////////////////////////
20
[238]21void         _sys_ukn();
22void         _exit();
23void         _context_switch();
[228]24unsigned int _procid();
25unsigned int _proctime();
[238]26unsigned int _local_task_id();
27unsigned int _global_task_id();
[158]28
[238]29unsigned int _procs_number( unsigned int  cluster_id, 
30                            unsigned int* buffer );
31
32unsigned int _vobj_get_vbase( char*         vspace_name, 
33                              char*         vobj_name, 
34                              unsigned      vobj_type, 
35                              unsigned int* vobj_buffer);
36
[228]37#endif
[158]38
[228]39// Local Variables:
40// tab-width: 4
41// c-basic-offset: 4
42// c-file-offsets:((innamespace . 0)(inline-open . 0))
43// indent-tabs-mode: nil
44// End:
45// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
[158]46
Note: See TracBrowser for help on using the repository browser.