From 73872571d96698b5af7dabf765025c0959c3296a Mon Sep 17 00:00:00 2001 From: "Dale S. Rahn" Date: Mon, 22 Mar 1999 02:40:13 +0000 Subject: Use standard macros for asm functions instead of the incomplete asm function headers previously used. --- sys/arch/powerpc/powerpc/setjmp.S | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sys') diff --git a/sys/arch/powerpc/powerpc/setjmp.S b/sys/arch/powerpc/powerpc/setjmp.S index 1cfe470b936..3a5f4c237d0 100644 --- a/sys/arch/powerpc/powerpc/setjmp.S +++ b/sys/arch/powerpc/powerpc/setjmp.S @@ -1,7 +1,8 @@ -/* $OpenBSD: setjmp.S,v 1.2 1996/12/28 06:22:18 rahnds Exp $ */ +/* $OpenBSD: setjmp.S,v 1.3 1999/03/22 02:40:12 rahnds Exp $ */ /* kernel version of this file, does not have signal goop */ /* int setjmp(jmp_buf env) */ +#include #define JMP_r1 0x04 #define JMP_r14 0x08 #define JMP_r15 0x0c @@ -28,8 +29,7 @@ #define JMP_sig 0x60 -.globl setjmp -setjmp: +ENTRY(_C_LABEL(setjmp)) stw 31, JMP_r31(3) /* r1, r14-r30 */ stw 1, JMP_r1 (3) @@ -64,9 +64,7 @@ setjmp: blr -.extern sigsetmask -.globl longjmp -longjmp: +ENTRY(_C_LABEL(longjmp)) lwz 31, JMP_r31(3) /* r1, r14-r30 */ lwz 1, JMP_r1 (3) -- cgit v1.2.3