summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-09-01 09:55:51 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-09-01 09:55:51 +0000
commitb8d4b65e4e7eaa815cb467b8296ad175dd2cfe74 (patch)
tree2e41dddd4316deab1e326f9ad60d63867259aa5e /lib
parent6b5b8abf3ecce7bf09fbff615b48beeac626135b (diff)
Make this __STDC__ aware.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/m68k/sys/sigreturn.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/arch/m68k/sys/sigreturn.S b/lib/libc/arch/m68k/sys/sigreturn.S
index ed094b0d3bb..086230173d9 100644
--- a/lib/libc/arch/m68k/sys/sigreturn.S
+++ b/lib/libc/arch/m68k/sys/sigreturn.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigreturn.S,v 1.7 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: sigreturn.S,v 1.8 2012/09/01 09:55:50 miod Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -40,10 +40,17 @@
#ifdef PROF
#undef ENTRY
/* XXX should bring into line with __ENTRY in SYS.h */
+#ifdef __STDC__
+#define ENTRY(x) \
+ .globl _##x; .even; _##x:; moveml _IMMEDIATE_ 0xC0C0,sp@-; .data; \
+ PROF##x:; .long 0; .text; lea PROF##x,a0; jbsr mcount; \
+ moveml sp@+,_IMMEDIATE_ 0x0303
+#else
#define ENTRY(x) \
.globl _/**/x; .even; _/**/x:; moveml #0xC0C0,sp@-; .data; \
PROF/**/x:; .long 0; .text; lea PROF/**/x,a0; jbsr mcount; \
moveml sp@+,#0x0303
+#endif
#endif /* PROF */
SYSENTRY(sigreturn)