xref: /haiku/src/system/libroot/posix/arch/arm/siglongjmp.S (revision 81291304ada328790118123ac74fb3dee8ce11fa)
16f14ecb4SFrançois Revol/*
26f14ecb4SFrançois Revol * Copyright 2005, Ingo Weinhold <bonefish@cs.tu-berlin.de>. All rights
36f14ecb4SFrançois Revol * reserved. Distributed under the terms of the Haiku License.
46f14ecb4SFrançois Revol */
56f14ecb4SFrançois Revol
66f14ecb4SFrançois Revol#include <asm_defs.h>
76f14ecb4SFrançois Revol
86f14ecb4SFrançois Revol/* int __siglongjmp(jmp_buf buffer, int value) */
96f14ecb4SFrançois RevolFUNCTION(siglongjmp):
106f14ecb4SFrançois RevolFUNCTION(longjmp):
116f14ecb4SFrançois RevolFUNCTION(_longjmp):
12*740490baSIthamar R. Adema	str	r1, [r0, #4]
137889c39dSIthamar R. Adema        ldmia	r0, {r0-r14}
14*740490baSIthamar R. Adema	b	__longjmp_return
156f14ecb4SFrançois RevolFUNCTION_END(siglongjmp)
166f14ecb4SFrançois RevolFUNCTION_END(longjmp)
176f14ecb4SFrançois RevolFUNCTION_END(_longjmp)
186f14ecb4SFrançois Revol
196f14ecb4SFrançois Revol#pragma weak longjmp=siglongjmp
20