diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1998-07-04 23:57:41 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1998-07-04 23:57:41 +0000 |
commit | 42f6909fcf313bc7d56469429281e8ad4bfc65a5 (patch) | |
tree | 1078b29a2bda8691f3c601decaa7c44e1642d2e1 | |
parent | 8fc7e4a8b07832c0e3c82e682560bbcca8b6ff03 (diff) |
Changes to support profiling libraries for the powerpc port.
-rw-r--r-- | lib/libc/arch/powerpc/SYS.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/libc/arch/powerpc/SYS.h b/lib/libc/arch/powerpc/SYS.h index 39a86e5f57a..f4e94d4a508 100644 --- a/lib/libc/arch/powerpc/SYS.h +++ b/lib/libc/arch/powerpc/SYS.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)SYS.h 8.1 (Berkeley) 6/4/93 - * $Id: SYS.h,v 1.1 1996/12/21 20:42:21 rahnds Exp $ + * $Id: SYS.h,v 1.2 1998/07/04 23:57:40 rahnds Exp $ */ #include <sys/syscall.h> @@ -45,21 +45,19 @@ #include "machine/asm.h" #ifdef __STDC__ -#define PSEUDO_PREFIX(x,y) .globl _C_LABEL(x) ; \ - .align 2; \ - .extern cerror ; \ - _C_LABEL(x): li 0, SYS_##y ; \ +#define PSEUDO_PREFIX(x,y) .extern cerror ; \ + ENTRY(x) \ + li 0, SYS_##y ; \ /* sc */ #else /* !__STDC__ */ -#define PSEUDO_PREFIX(x,y) .globl _C_LABEL(x) ; \ - .align 2; \ - .extern cerror ; \ - _C_LABEL(x): li 0, SYS_/**/y ; \ +#define PSEUDO_PREFIX(x,y) .extern cerror ; \ + ENTRY(x) \ + li 0, SYS_/**/y ; \ /* sc */ #endif /* !__STDC__ */ #define PSEUDO_SUFFIX cmpwi 0, 0 ; \ beqlr+ ; \ - b cerror + b cerror #define PREFIX(x) PSEUDO_PREFIX(x,x) |