1/* BSD `setjmp' entry point to `sigsetjmp (..., 1)'. ARC version. 2 * 3 * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) 4 * 5 * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball. 6 */ 7 8/* This just does a tail-call to `__sigsetjmp (ARG, 1)'. 9 We cannot do it in C because it must be a tail-call, so frame-unwinding 10 in setjmp doesn't clobber the state restored by longjmp. */ 11 12#include <sysdep.h> 13 14;@ r0 = jump buffer into which regs will be saved 15 16ENTRY(setjmp) 17 b.d __sigsetjmp 18 mov r1, 1 ; save signals 19END(setjmp) 20libc_hidden_def(setjmp) 21