Remove building with NOCRYPTO option
[minix.git] / minix / lib / libsys / sef_fi.c
blob3f8c0ea93d1c6f0d96b59e675efc02583410d639
2 #include "syslib.h"
3 #include <assert.h>
4 #include <minix/sysutil.h>
6 EXTERN __attribute__((weak)) int edfi_ctl_process_request(void *ctl_request);
8 EXTERN int do_sef_fi_request(message *m_ptr);
10 EXTERN int sef_controlled_crash;
12 /*===========================================================================*
13 * do_sef_fi_request *
14 *===========================================================================*/
15 int do_sef_fi_request(message *m_ptr)
17 /* See if we are simply asked to crash. */
18 if (m_ptr->m_lsys_fi_ctl.subtype == RS_FI_CRASH) {
19 sef_controlled_crash = TRUE;
20 panic("Crash!");
23 #if SEF_FI_ALLOW_EDFI
24 /* Forward the request to the EDFI fault injector, if linked in. */
25 if(edfi_ctl_process_request)
26 return edfi_ctl_process_request(m_ptr);
27 #endif
29 return ENOSYS;