summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-01-22 13:51:13 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-22 13:51:13 -0800
commit8a5bfd70011752ebac93540e83354bab11c63735 (patch)
treef8ffa5946fcf6d4135a9b083274a3e4807a03462
parent0e7f4172931e1d7517b49deeb2d134704443320c (diff)
parentd59a3cc959cb14b0bed14b62e33ee4178b89b346 (diff)
Merge pull request #1629 from xiaobo55x:fault_test
PiperOrigin-RevId: 291022423
-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