From 6e2c1e84e944d80bcfc98b924ebf2aa338b192c6 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 18 Dec 2002 02:11:58 +0000 Subject: Rename longjmp.S to __longjmp.S Remove extra weak symbols defined by ../common/longjmp.c --- libc/sysdeps/linux/v850/__longjmp.S | 42 ++++++++++++++++++++++++++++++++ libc/sysdeps/linux/v850/longjmp.S | 48 ------------------------------------- 2 files changed, 42 insertions(+), 48 deletions(-) create mode 100644 libc/sysdeps/linux/v850/__longjmp.S delete mode 100644 libc/sysdeps/linux/v850/longjmp.S diff --git a/libc/sysdeps/linux/v850/__longjmp.S b/libc/sysdeps/linux/v850/__longjmp.S new file mode 100644 index 000000000..f91086189 --- /dev/null +++ b/libc/sysdeps/linux/v850/__longjmp.S @@ -0,0 +1,42 @@ +/* + * libc/sysdeps/linux/v850/longjmp.S -- `longjmp' for v850 + * + * Copyright (C) 2001,02 NEC Corporation + * Copyright (C) 2001,02 Miles Bader + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License. See the file COPYING.LIB in the main + * directory of this archive for more details. + * + * Written by Miles Bader + */ + +#define _SETJMP_H +#define _ASM +#include + +#include + + .text +C_ENTRY(__longjmp): + /* Save registers */ + mov r6, ep + sld.w 0[ep], sp + sld.w 4[ep], lp + sld.w 8[ep], r2 + sld.w 12[ep], r20 + sld.w 16[ep], r21 + sld.w 20[ep], r22 + sld.w 24[ep], r23 + sld.w 28[ep], r24 + sld.w 32[ep], r25 + sld.w 36[ep], r26 + sld.w 40[ep], r27 + sld.w 44[ep], r28 + sld.w 48[ep], r29 + mov 1, r10 // return val + jmp [lp] +C_END(__longjmp) + +.weak C_SYMBOL_NAME(__sigprocmask) +C_SYMBOL_NAME(__sigprocmask) = C_SYMBOL_NAME(sigprocmask) diff --git a/libc/sysdeps/linux/v850/longjmp.S b/libc/sysdeps/linux/v850/longjmp.S deleted file mode 100644 index 918280e14..000000000 --- a/libc/sysdeps/linux/v850/longjmp.S +++ /dev/null @@ -1,48 +0,0 @@ -/* - * libc/sysdeps/linux/v850/longjmp.S -- `longjmp' for v850 - * - * Copyright (C) 2001 NEC Corporation - * Copyright (C) 2001 Miles Bader - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License. See the file COPYING.LIB in the main - * directory of this archive for more details. - * - * Written by Miles Bader - */ - -#define _SETJMP_H -#define _ASM -#include - -#include - - .text -C_ENTRY(__longjmp): - /* Save registers */ - mov r6, ep - sld.w 0[ep], sp - sld.w 4[ep], lp - sld.w 8[ep], r2 - sld.w 12[ep], r20 - sld.w 16[ep], r21 - sld.w 20[ep], r22 - sld.w 24[ep], r23 - sld.w 28[ep], r24 - sld.w 32[ep], r25 - sld.w 36[ep], r26 - sld.w 40[ep], r27 - sld.w 44[ep], r28 - sld.w 48[ep], r29 - mov 1, r10 // return val - jmp [lp] -C_END(__longjmp) - -.weak C_SYMBOL_NAME(longjmp) -C_SYMBOL_NAME(longjmp) = C_SYMBOL_NAME(__longjmp) - -.weak C_SYMBOL_NAME(siglongjmp) -C_SYMBOL_NAME(siglongjmp) = C_SYMBOL_NAME(__longjmp) - -.weak C_SYMBOL_NAME(__sigprocmask) -C_SYMBOL_NAME(__sigprocmask) = C_SYMBOL_NAME(sigprocmask) -- cgit v1.2.3