From d59a3cc959cb14b0bed14b62e33ee4178b89b346 Mon Sep 17 00:00:00 2001 From: Haibo Xu Date: Wed, 22 Jan 2020 05:51:57 +0000 Subject: Enable fault() syscall test on arm64. Signed-off-by: Haibo Xu Change-Id: I9b2b2e0d84946c10cf136abeef6c60642fa3b6ec --- test/syscalls/linux/fault.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/syscalls/linux/fault.cc') diff --git a/test/syscalls/linux/fault.cc b/test/syscalls/linux/fault.cc index f6e19026f..a85750382 100644 --- a/test/syscalls/linux/fault.cc +++ b/test/syscalls/linux/fault.cc @@ -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 -- cgit v1.2.3