minix/lib/libc/arch/arm/sys-minix/__sigreturn.S

11 lines
433 B
ArmAsm
Raw Normal View History

2012-08-28 19:34:08 +02:00
/* This routine is the low-level code for returning from signals. */
/* It calls _sigreturn, which is the normal "system call" routine. */
/* Both __sigreturn and _sigreturn are needed. */
#include <machine/asm.h>
IMPORT(_sigreturn)
ENTRY(__sigreturn)
add sp, sp, #24 /* make sp point to sigframe.sf_scpcopy */
pop {r0} /* load it into r0 as parameter */
b _C_LABEL(_sigreturn) /* _sigreturn(struct sigcontext *sf_scpcopy) */