/shark/trunk/kernel/kern.c |
---|
18,11 → 18,11 |
/** |
------------ |
CVS : $Id: kern.c,v 1.10 2004-04-18 18:59:28 giacomo Exp $ |
CVS : $Id: kern.c,v 1.11 2004-04-18 20:18:21 giacomo Exp $ |
File: $File$ |
Revision: $Revision: 1.10 $ |
Last update: $Date: 2004-04-18 18:59:28 $ |
Revision: $Revision: 1.11 $ |
Last update: $Date: 2004-04-18 20:18:21 $ |
------------ |
This file contains: |
554,6 → 554,8 |
trc_suspend(); |
#endif |
remove_default_exception_handler(); |
runlevel = RUNLEVEL_SHUTDOWN; |
/* 1 when the error code is != 0 */ |
708,8 → 710,6 |
{ |
SYS_FLAGS f; |
cprintf("SYS-END\n"); |
f = kern_fsave(); |
internal_sys_end(err); |
kern_frestore(f); |
/shark/trunk/kernel/exchand.c |
---|
18,11 → 18,11 |
/** |
------------ |
CVS : $Id: exchand.c,v 1.5 2004-04-16 11:18:14 giacomo Exp $ |
CVS : $Id: exchand.c,v 1.6 2004-04-18 20:18:21 giacomo Exp $ |
File: $File$ |
Revision: $Revision: 1.5 $ |
Last update: $Date: 2004-04-16 11:18:14 $ |
Revision: $Revision: 1.6 $ |
Last update: $Date: 2004-04-18 20:18:21 $ |
------------ |
**/ |
107,6 → 107,18 |
return sigaction(SIGHEXC, &action, NULL); /* set the signal */ |
} |
int remove_default_exception_handler(void) |
{ |
struct sigaction action; |
action.sa_flags = SA_SIGINFO; |
action.sa_sigaction = NULL; |
action.sa_handler = SIG_IGN; |
sigfillset(&action.sa_mask); |
return sigaction(SIGHEXC, &action, NULL); /* set the signal */ |
} |
int sys_shutdown_message(char *fmt,...) |
{ |
va_list parms; |
/shark/trunk/include/kernel/func.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: func.h,v 1.11 2004-03-09 08:53:17 giacomo Exp $ |
CVS : $Id: func.h,v 1.12 2004-04-18 20:18:49 giacomo Exp $ |
File: $File$ |
Revision: $Revision: 1.11 $ |
Last update: $Date: 2004-03-09 08:53:17 $ |
Revision: $Revision: 1.12 $ |
Last update: $Date: 2004-04-18 20:18:49 $ |
------------ |
Kernel functions: |
392,6 → 392,7 |
/* This function is called by the kernel into kern.c to register a default |
exception handler */ |
int set_default_exception_handler(void); |
int remove_default_exception_handler(void); |
/*---------------------------------------------------------------------*/ |
/* Task management primitives */ |
/shark/trunk/include/kernel/const.h |
---|
16,11 → 16,11 |
/** |
------------ |
CVS : $Id: const.h,v 1.4 2004-01-28 11:54:36 giacomo Exp $ |
CVS : $Id: const.h,v 1.5 2004-04-18 20:18:49 giacomo Exp $ |
File: $File$ |
Revision: $Revision: 1.4 $ |
Last update: $Date: 2004-01-28 11:54:36 $ |
Revision: $Revision: 1.5 $ |
Last update: $Date: 2004-04-18 20:18:49 $ |
------------ |
System constants: |
165,5 → 165,8 |
#define RUNLEVEL_MASK 0x7 /*+ a mask used into kernel/init.c +*/ |
#define NO_AT_ABORT 8 /*+ only when sys_end is called +*/ |
/*+ RUNLEVEL_SHUTDOWN timeout +*/ |
#define SYSTEM_CLOSE_TIMEOUT 3 |
#endif /* __CONST_H__ */ |