mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Enable fault() syscall test on arm64.
Signed-off-by: Haibo Xu <haibo.xu@arm.com> Change-Id: I9b2b2e0d84946c10cf136abeef6c60642fa3b6ec
This commit is contained in:
@@ -37,6 +37,9 @@ int GetPcFromUcontext(ucontext_t* uc, uintptr_t* pc) {
|
||||
#elif defined(__i386__)
|
||||
*pc = uc->uc_mcontext.gregs[REG_EIP];
|
||||
return 1;
|
||||
#elif defined(__aarch64__)
|
||||
*pc = uc->uc_mcontext.pc;
|
||||
return 1;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user