Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 922 → Rev 923

/shark/trunk/include/kernel/func.h
21,11 → 21,11
 
/**
------------
CVS : $Id: func.h,v 1.17 2005-01-07 08:21:16 pj Exp $
CVS : $Id: func.h,v 1.18 2005-01-08 14:52:11 pj Exp $
 
File: $File$
Revision: $Revision: 1.17 $
Last update: $Date: 2005-01-07 08:21:16 $
Revision: $Revision: 1.18 $
Last update: $Date: 2005-01-08 14:52:11 $
------------
 
Kernel functions:
137,8 → 137,7
 
/*+ This function returns a resource_des **. the value returned shall be
used to register a resource module. The function shall be called only at
module registration time. It assume that the system is not yet
initialized, so we shall not call sys_abort... +*/
module registration time. +*/
RLEVEL resource_alloc_descriptor();
 
/*+ This function compute the command line parameters from the multiboot_info
297,30 → 296,13
/* System management primitives */
/*---------------------------------------------------------------------*/
 
/*+ Close the system & return to HOST OS.
Can be called from all the tasks...
The first time it is called it jumps to the global context
The second time it jumps only if there are no system task remaining
The error code passed is 0... (it is saved on the first call!!!) +*/
void sys_end(void);
void exit(int status);
void _exit(int status);
 
/*+ Close the system & return to HOST OS.
Can be called from all the tasks...
The first time it is called it works as the sys_end
The second time it jumps every time
The error code passed is 0... +*/
void sys_abort(int err);
 
/*+ As sys_abort, but it works when the system is
in shutdown mode +*/
/*+ Shuts down the system when in RUNLEVEL SHUTDOWN +*/
void sys_abort_shutdown(int err);
 
/* The system implements also exit and _exit as a redefinition of sys_end
This is not the correct behaviour, and should be fixed.
The definitions for these functions are in kernel/kern.c
*/
 
/*+ Print a message then call sys_abort(333).
/*+ Print a message then call exit(333).
Can be called from all the tasks... +*/
void sys_panic(const char * fmt, ...) __attribute__ ((format (printf, 1, 2)));