From 313495587598fb1a69b94c44a83735f6056f6049 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Thu, 8 Oct 2020 16:49:21 -0700 Subject: Additional porting for riscv64. Adds handling for the PC register, malloc_hook_mmap, and syscalls. Successfully built in Ubuntu with these changes. --- m4/pc_from_ucontext.m4 | 1 + 1 file changed, 1 insertion(+) (limited to 'm4') diff --git a/m4/pc_from_ucontext.m4 b/m4/pc_from_ucontext.m4 index 9d76f4c..88c8abf 100644 --- a/m4/pc_from_ucontext.m4 +++ b/m4/pc_from_ucontext.m4 @@ -28,6 +28,7 @@ AC_DEFUN([AC_PC_FROM_UCONTEXT], pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64) pc_fields="$pc_fields uc_mcontext.pc" # Linux (mips) pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[[PT_NIP]]" # Linux (ppc) + pc_fields="$pc_fields uc_mcontext.__gregs[[REG_PC]]" # Linux (riscv64) pc_fields="$pc_fields uc_mcontext.psw.addr" # Linux (s390) pc_fields="$pc_fields uc_mcontext.gregs[[R15]]" # Linux (arm old [untested]) pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5) -- cgit v1.2.1