Commit ed968c23 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

ntdll: Reuse signal to trap translation for FreeBSD on ARM.

parent 475f2197
...@@ -148,7 +148,8 @@ static inline enum arm_trap_code get_trap_code( int signal, const ucontext_t *si ...@@ -148,7 +148,8 @@ static inline enum arm_trap_code get_trap_code( int signal, const ucontext_t *si
enum arm_trap_code trap = TRAP_sig(sigcontext); enum arm_trap_code trap = TRAP_sig(sigcontext);
if (trap) if (trap)
return trap; return trap;
/* trap is 0 on arm64 kernel */ #endif
switch (signal) switch (signal)
{ {
case SIGILL: case SIGILL:
...@@ -158,11 +159,8 @@ static inline enum arm_trap_code get_trap_code( int signal, const ucontext_t *si ...@@ -158,11 +159,8 @@ static inline enum arm_trap_code get_trap_code( int signal, const ucontext_t *si
case SIGBUS: case SIGBUS:
return TRAP_ARM_ALIGNFLT; return TRAP_ARM_ALIGNFLT;
default: default:
return trap; return TRAP_ARM_UNKNOWN;
} }
#else
return TRAP_ARM_UNKNOWN; /* unknown trap code */
#endif
} }
/*********************************************************************** /***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment