|
@@ -253,16 +253,7 @@ static void _DkResumeSighandler (int signum, siginfo_t * info,
|
|
|
INLINE_SYSCALL(exit, 1, 1);
|
|
INLINE_SYSCALL(exit, 1, 1);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- int event = 0;
|
|
|
|
|
- switch(signum) {
|
|
|
|
|
- case SIGBUS:
|
|
|
|
|
- case SIGSEGV:
|
|
|
|
|
- event = PAL_EVENT_MEMFAULT;
|
|
|
|
|
- break;
|
|
|
|
|
- case SIGILL:
|
|
|
|
|
- event = PAL_EVENT_ILLEGAL;
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ int event = get_event_num(signum);
|
|
|
#if SGX_HAS_FSGSBASE != 0
|
|
#if SGX_HAS_FSGSBASE != 0
|
|
|
sgx_raise(event);
|
|
sgx_raise(event);
|
|
|
#else
|
|
#else
|