summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch
diff options
context:
space:
mode:
authorrahnds <rahnds@openbsd.org>1998-07-04 23:57:40 +0000
committerrahnds <rahnds@openbsd.org>1998-07-04 23:57:40 +0000
commitaf019a77de792916f53ee93eb04e98e02c23c001 (patch)
treeb7c8a734ccd17e699de2e5982362d92fe23499d4 /lib/libc/arch
parentProfile support for powerpc port. Now profiling libraries and binaries (diff)
downloadwireguard-openbsd-af019a77de792916f53ee93eb04e98e02c23c001.tar.xz
wireguard-openbsd-af019a77de792916f53ee93eb04e98e02c23c001.zip
Changes to support profiling libraries for the powerpc port.
Diffstat (limited to 'lib/libc/arch')
-rw-r--r--lib/libc/arch/powerpc/SYS.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/libc/arch/powerpc/SYS.h b/lib/libc/arch/powerpc/SYS.h
index f3bd008acaf..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.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)