diff options
author | Haibo Xu <haibo.xu@arm.com> | 2020-01-22 05:51:57 +0000 |
---|---|---|
committer | Haibo Xu <haibo.xu@arm.com> | 2020-01-22 06:57:19 +0000 |
commit | d59a3cc959cb14b0bed14b62e33ee4178b89b346 (patch) | |
tree | bb7b175403c56be287e66c77a5cf6fd26e7640ca /test/syscalls/linux | |
parent | b3405a719cbb33dac2deced192209a5584e5e3d6 (diff) |
Enable fault() syscall test on arm64.
Signed-off-by: Haibo Xu <haibo.xu@arm.com>
Change-Id: I9b2b2e0d84946c10cf136abeef6c60642fa3b6ec
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r-- | test/syscalls/linux/fault.cc | 3 |
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 |