@----------------------------------------------------------------------------
@
@\Source: /usr/local/cvsroot/gccsdk/unixlib/source/sys/_sigjmp.s,v $
@\Date: 2002/09/24 2102:38 $
@\Revision: 1.3 $
@\State: Exp $
@\Author: admin $
@
@----------------------------------------------------------------------------

	.include	"clib/unixlib/asm_dec.s"



	@ sigsetjmp (sigjmp_buf state, int value)
	.global	sigsetjmp
	NAME	sigsetjmp
sigsetjmp:
	@ It's best to preserve these registers.
	STMFD	sp!, {a1, lr}
	BL	__sigsetjmp_helper
	LDMFD	sp!, {a1, lr}
	B	setjmp

	@ siglongjmp (sigjmp_buf state, int value)
	.global	siglongjmp
	NAME	siglongjmp
siglongjmp:
	@ Preserve state and value
	@ __siglongjmp_helper will update the process's blocked signal
	@ mask, if it was saved by sigsetjmp. If there are any pending
	@ signals unblocked, then these will be delivered.
	STMFD	sp!, {a1, a2}
	BL	__siglongjmp_helper
	LDMFD	sp!, {a1, a2}
	B	longjmp

