Skip to content

Commit

Permalink
Update sigsegv.c: enable riscv64 and loong64 building
Browse files Browse the repository at this point in the history
Based on patches from:
Heinrich Schuchardt <[email protected]>
sigsegv: enable RISC-V build
And:
hangdandan <[email protected]>
Add support for loongarch
  • Loading branch information
LocutusOfBorg authored Oct 26, 2024
1 parent 5b8f5d9 commit 42ba5d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigsegv.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
a2j_error("info.si_errno = %d", info->si_errno);
a2j_error("info.si_code = %d (%s)", info->si_code, si_codes[info->si_code]);
a2j_error("info.si_addr = %p", info->si_addr);
#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__)
#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__) && !defined(__riscv) && !defined(__loongarch__)
for(i = 0; i < NGREG; i++)
a2j_error("reg[%02d] = 0x" REGFORMAT, i,
#if defined(__powerpc__) && !defined(__powerpc64__)
Expand All @@ -108,7 +108,7 @@ static void signal_segv(int signum, siginfo_t* info, void*ptr) {
ucontext->uc_mcontext.gregs[i]
#endif
);
#endif /* alpha, ia64, kFreeBSD, arm, hppa, aarch64 */
#endif /* alpha, ia64, kFreeBSD, arm, hppa, aarch64, riscv, loongarch */

#if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64)
# if defined(SIGSEGV_STACK_IA64)
Expand Down

0 comments on commit 42ba5d7

Please sign in to comment.