diff --git a/Pal/src/host/Linux-SGX/sgx_exception.c b/Pal/src/host/Linux-SGX/sgx_exception.c index 999f082c..15ec8618 100644 --- a/Pal/src/host/Linux-SGX/sgx_exception.c +++ b/Pal/src/host/Linux-SGX/sgx_exception.c @@ -253,16 +253,7 @@ static void _DkResumeSighandler (int signum, siginfo_t * info, 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 sgx_raise(event); #else