ack/mach/sparc_solaris/libsys/_sig_catch.s

22 lines
327 B
ArmAsm
Raw Normal View History

1993-10-06 17:04:49 +00:00
#include "SYS.h"
LABEL__(sig_catch)
save %sp, %g4, %sp
mov %fp, %l0 ! get new EM frame pointer
dec 4, %l0
st %i0, [%l0] ! push signal number on EM stack
set $_sig_funcs, %l1
dec 1, %i0
sll %i0, 2, %l2
add %l1, %l2, %l3
ld [%l3], %l2 ! get signal handler into %l2
call %l2
nop
restore
retl
add %sp,%g4,%sp