21,11 → 21,11 |
|
/** |
------------ |
CVS : $Id: var.h,v 1.4 2003-03-13 13:36:28 pj Exp $ |
CVS : $Id: var.h,v 1.5 2005-01-08 14:50:58 pj Exp $ |
|
File: $File$ |
Revision: $Revision: 1.4 $ |
Last update: $Date: 2003-03-13 13:36:28 $ |
Revision: $Revision: 1.5 $ |
Last update: $Date: 2005-01-08 14:50:58 $ |
------------ |
|
Kernel global variables |
112,14 → 112,7 |
system tasks and then it ends. +*/ |
|
|
extern int mustexit; /*+ This variable is set by the system |
call sys_end() or sys_abort(). |
When a sys_end() or sys_abort is called |
into an event handler, |
we don't have to change context in the |
reschedule(). +*/ |
|
int calling_runlevel_func; /*+ this variable is set to 1 into |
extern int calling_runlevel_func; /*+ this variable is set to 1 into |
call_runlevel_func (look at init.c) |
ad it is used because the task_activate |
(look at activate.c) must work in a |
126,5 → 119,29 |
different way when the system is in the |
global_context +*/ |
|
#define EXIT_CALLED 1 |
#define _EXIT_CALLED 2 |
extern int _exit_has_been_called; /*+ this variable is set when _exit is |
called. in this case, the atexit |
functions will not be called. |
Values: - 0 neither exit or _exit |
have been called - 1 exit has been |
called - 2 _exit has been called +*/ |
|
extern CONTEXT global_context; /*+ Context used during initialization; |
It references also a safe stack +*/ |
|
extern int runlevel; /*+ this is the system runlevel... it |
may be from 0 to 4: 0 - init 1 - |
running 2 - shutdown 3 - before |
halting 4 - halting +*/ |
|
extern int event_noreschedule; /*+ This controls if the system needed |
to be rescheduled at the end of an |
IRQ/event or if must not because |
exit, _exit, or sys_abort_shutdown |
was called +*/ |
|
|
__END_DECLS |
#endif /* __VAR_H__ */ |