diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-01-29 09:02:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-01-29 09:02:55 +0000 |
commit | 8fda4c4091b05523123b9a59f627a08581e73c65 (patch) | |
tree | e3c2db454f9d4221bec5bac5308b8263ecce8d65 /libc/sysdeps/linux/v850/setjmp.S | |
parent | 75d013b16a0764bf393628d241f05729a81d9b8d (diff) |
Updates to the v850 architecture from Miles Bader <miles@gnu.org>
Diffstat (limited to 'libc/sysdeps/linux/v850/setjmp.S')
-rw-r--r-- | libc/sysdeps/linux/v850/setjmp.S | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/v850/setjmp.S b/libc/sysdeps/linux/v850/setjmp.S index 460706ec6..87a5e3833 100644 --- a/libc/sysdeps/linux/v850/setjmp.S +++ b/libc/sysdeps/linux/v850/setjmp.S @@ -1,8 +1,8 @@ /* * libc/sysdeps/linux/v850/setjmp.S -- `setjmp' for v850 * - * Copyright (C) 2001 NEC Corporation - * Copyright (C) 2001 Miles Bader <miles@gnu.org> + * Copyright (C) 2001,2002 NEC Corporation + * Copyright (C) 2001,2002 Miles Bader <miles@gnu.org> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License. See the file COPYING.LIB in the main @@ -18,7 +18,16 @@ #include <clinkage.h> .text -C_ENTRY(__sigsetjmp): +C_ENTRY(setjmp): + mov 1, r7 /* Save the signal mask. */ + br C_SYMBOL_NAME(__sigsetjmp) + + .globl C_SYMBOL_NAME(_setjmp) +C_SYMBOL_NAME(_setjmp): + mov 0, r7 /* Don't save the signal mask. */ + + .globl C_SYMBOL_NAME(__sigsetjmp) +C_SYMBOL_NAME(__sigsetjmp): /* Save registers */ mov r6, ep sst.w sp, 0[ep] @@ -36,4 +45,4 @@ C_ENTRY(__sigsetjmp): sst.w r29, 48[ep] /* Make a tail call to __sigjmp_save; it takes the same args. */ jr C_SYMBOL_NAME(__sigjmp_save) -C_END(__sigsetjmp) +C_END(setjmp) |