summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorHaibo Xu <haibo.xu@arm.com>2020-01-22 05:51:57 +0000
committerHaibo Xu <haibo.xu@arm.com>2020-01-22 06:57:19 +0000
commitd59a3cc959cb14b0bed14b62e33ee4178b89b346 (patch)
treebb7b175403c56be287e66c77a5cf6fd26e7640ca /test
parentb3405a719cbb33dac2deced192209a5584e5e3d6 (diff)
Enable fault() syscall test on arm64.
Signed-off-by: Haibo Xu <haibo.xu@arm.com> Change-Id: I9b2b2e0d84946c10cf136abeef6c60642fa3b6ec
Diffstat (limited to 'test')
-rw-r--r--test/syscalls/linux/fault.cc3
1 files changed, 3 insertions, 0 deletions
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