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
|
Line | |
---|
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 | |
---|
10 | typedef struct static_scheduler_s |
---|
11 | { |
---|
12 | unsigned int context[GIET_NB_TASKS_MAX][64]; // task contexts |
---|
13 | unsigned int tasks; // actual number of tasks |
---|
14 | unsigned int current; // current task index |
---|
15 | } static_scheduler_t; |
---|
16 | |
---|
17 | ////////////////////////////////////////////////////////////////////////////////// |
---|
18 | // Prototype of the context switch function |
---|
19 | ////////////////////////////////////////////////////////////////////////////////// |
---|
20 | |
---|
21 | extern void _ctx_switch(); |
---|
22 | |
---|
23 | extern static_scheduler_t _scheduler[]; |
---|
24 | |
---|
25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.