diff options
Diffstat (limited to 'libgo/runtime/go-signal.c')
-rw-r--r-- | libgo/runtime/go-signal.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgo/runtime/go-signal.c b/libgo/runtime/go-signal.c index a07fdea..b429fdb 100644 --- a/libgo/runtime/go-signal.c +++ b/libgo/runtime/go-signal.c @@ -179,6 +179,18 @@ setSigactionHandler(struct sigaction* sa, uintptr handler) // C code to fetch values from the siginfo_t and ucontext_t pointers // passed to a signal handler. +uintptr getSiginfoCode(siginfo_t *) + __attribute__ ((no_split_stack)); + +uintptr getSiginfoCode(siginfo_t *) + __asm__ (GOSYM_PREFIX "runtime.getSiginfoCode"); + +uintptr +getSiginfoCode(siginfo_t *info) +{ + return (uintptr)(info->si_code); +} + struct getSiginfoRet { uintptr sigaddr; uintptr sigpc; |