1 /* The kernel call implemented in this file: 2 * m_type: SYS_ABORT 3 * 4 * The parameters for this kernel call are: 5 * m_lsys_krn_sys_abort.how (how to abort, possibly fetch monitor params) 6 */ 7 8 #include "kernel/system.h" 9 #include <unistd.h> 10 11 #if USE_ABORT 12 13 /*===========================================================================* 14 * do_abort * 15 *===========================================================================*/ do_abort(struct proc * caller,message * m_ptr)16int do_abort(struct proc * caller, message * m_ptr) 17 { 18 /* Handle sys_abort. MINIX is unable to continue. This can originate e.g. 19 * in the PM (normal abort) or TTY (after CTRL-ALT-DEL). 20 */ 21 int how = m_ptr->m_lsys_krn_sys_abort.how; 22 23 /* Now prepare to shutdown MINIX. */ 24 prepare_shutdown(how); 25 return(OK); /* pro-forma (really EDISASTER) */ 26 } 27 28 #endif /* USE_ABORT */ 29 30