|
Last change
on this file since 255 was
255,
checked in by meunier, 12 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
|
| Rev | Line | |
|---|
| [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] | 15 | extern const void * _syscall_vector[64]; |
|---|
| [158] | 16 | |
|---|
| 17 | ////////////////////////////////////////////////////////////////////////////////// |
|---|
| 18 | // Prototypes os the syscall handlers (other than peripheral drivers) |
|---|
| 19 | ////////////////////////////////////////////////////////////////////////////////// |
|---|
| 20 | |
|---|
| [238] | 21 | void _sys_ukn(); |
|---|
| 22 | void _exit(); |
|---|
| 23 | void _context_switch(); |
|---|
| [228] | 24 | unsigned int _procid(); |
|---|
| 25 | unsigned int _proctime(); |
|---|
| [238] | 26 | unsigned int _local_task_id(); |
|---|
| 27 | unsigned int _global_task_id(); |
|---|
| [158] | 28 | |
|---|
| [238] | 29 | unsigned int _procs_number( unsigned int cluster_id, |
|---|
| 30 | unsigned int* buffer ); |
|---|
| 31 | |
|---|
| 32 | unsigned 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.