summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-05-21 20:38:11 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-05-21 20:38:11 +0000
commit8c6ce799ad16f63e7656d04f36beebaf2a6ebff3 (patch)
treead615369de23ecd1493b374ce4f5f788c7f8159c
parent89d9e9c04dbf4f1ae442cbde30458f8f1d50f321 (diff)
Use _PROF_PROLOGUE insteaf of rolling our own.
-rw-r--r--lib/libc/arch/vax/sys/sigreturn.S10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/arch/vax/sys/sigreturn.S b/lib/libc/arch/vax/sys/sigreturn.S
index 112f0fa351d..1402dec07c7 100644
--- a/lib/libc/arch/vax/sys/sigreturn.S
+++ b/lib/libc/arch/vax/sys/sigreturn.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigreturn.S,v 1.6 2005/08/07 16:40:16 espie Exp $ */
+/* $OpenBSD: sigreturn.S,v 1.7 2008/05/21 20:38:10 miod Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -35,9 +35,11 @@
*/
#ifdef PROF
#undef ENTRY
-#define ENTRY(x, y) \
- .globl _ ## x; .align 2; _ ## x ## : .word 0; pushr $0x3f; \
- .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount; popr $0x3f;
+#define ENTRY(x, y) \
+ _ENTRY(_C_LABEL(x), 0); \
+ pushr $0x3f; \
+ _PROF_PROLOGUE; \
+ popr $0x3f
#endif /* PROF */
SYSCALL(sigreturn)