minix/minix/kernel/system/do_abort.c
Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

30 lines
822 B
C

/* The kernel call implemented in this file:
* m_type: SYS_ABORT
*
* The parameters for this kernel call are:
* m_lsys_krn_sys_abort.how (how to abort, possibly fetch monitor params)
*/
#include "kernel/system.h"
#include <unistd.h>
#if USE_ABORT
/*===========================================================================*
* do_abort *
*===========================================================================*/
int do_abort(struct proc * caller, message * m_ptr)
{
/* Handle sys_abort. MINIX is unable to continue. This can originate e.g.
* in the PM (normal abort) or TTY (after CTRL-ALT-DEL).
*/
int how = m_ptr->m_lsys_krn_sys_abort.how;
/* Now prepare to shutdown MINIX. */
prepare_shutdown(how);
return(OK); /* pro-forma (really EDISASTER) */
}
#endif /* USE_ABORT */