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)
|
2013-01-30 03:13:24 +01:00
|
|
|
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) */
|