/* * Copyright 2005, Ingo Weinhold . All rights * reserved. Distributed under the terms of the Haiku License. */ #include /* int sigsetjmp(jmp_buf buffer, int saveMask) */ FUNCTION(__sigsetjmp): FUNCTION(sigsetjmp): stmia r0, {r0-r14} mrs r1, cpsr str r1, [r0, #64] ldr r1, [r0, #4] b __setjmp_save_sigs FUNCTION_END(sigsetjmp) FUNCTION_END(__sigsetjmp) /* int setjmp(jmp_buf buffer) */ FUNCTION(setjmp): stmia r0, {r0-r14} mrs r1, cpsr str r1, [r0, #64] ldr r1, [r0, #4] mov r0, #0 bx lr FUNCTION_END(setjmp) #pragma weak _setjmp=setjmp