source: soft/giet_vm/sys/ctx_handler.h @ 166

Last change on this file since 166 was 165, checked in by alain, 12 years ago

Introducing various modifications in kernel initialisation

File size: 825 bytes
RevLine 
[158]1#ifndef _CTX_HANDLER_H
2#define _CTX_HANDLER_H
3
4#include <giet_config.h>
5
6/////////////////////////////////////////////////////////////////////////////////
7//      Definition of the scheduler structure
8/////////////////////////////////////////////////////////////////////////////////
9
10typedef struct static_scheduler_s
11{
12    unsigned int        context[GIET_NB_TASKS_MAX][64];   // task contexts
[165]13    unsigned int        tasks;                                        // actual number of tasks
14    unsigned int        current;                                      // current task index
[158]15} static_scheduler_t;
16
17//////////////////////////////////////////////////////////////////////////////////
18//      Prototype of the context switch function
19//////////////////////////////////////////////////////////////////////////////////
20
21extern void _ctx_switch();
22
23extern static_scheduler_t _scheduler[];
24
25#endif
Note: See TracBrowser for help on using the repository browser.