Fix the wrong SGX exception conversion
This commit is contained in:
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 }
|
||||
|
Loading…
Reference in New Issue
Block a user