Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 566 → Rev 567

/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;