Fix the wrong SGX exception conversion

This commit is contained in:
LI Qing 2022-02-16 11:11:05 +08:00 committed by Zongmin.Gu
parent 906092e298
commit 126562a3f7

@ -45,7 +45,7 @@ impl FaultSignal {
(SIGSEGV, code, addr)
},
// General protection exception
SGX_EXCEPTION_VECTOR_PF => (SIGBUS, BUS_ADRERR, None),
SGX_EXCEPTION_VECTOR_GP => (SIGBUS, BUS_ADRERR, None),
_ => panic!("exception cannot be converted to signal"),
};
Self { num, code, addr }