aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_prof.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-04-15 17:47:40 +0000
committerBruce Evans <bde@FreeBSD.org>1998-04-15 17:47:40 +0000
commitc1087c13240442926a34afa825b4dd3993868549 (patch)
tree85994764e94105ae219ec63eaed3030d8e9d12b5 /sys/kern/subr_prof.c
parent7e07ce2225a75a7d42ade04338c77b30b974113b (diff)
downloadsrc-c1087c13240442926a34afa825b4dd3993868549.tar.gz
src-c1087c13240442926a34afa825b4dd3993868549.zip
Support compiling with `gcc -ansi'.
Notes
Notes: svn path=/head/; revision=35210
Diffstat (limited to 'sys/kern/subr_prof.c')
-rw-r--r--sys/kern/subr_prof.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c
index 0d571e1fbda0..c674c58193dd 100644
--- a/sys/kern/subr_prof.c
+++ b/sys/kern/subr_prof.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)subr_prof.c 8.3 (Berkeley) 9/23/93
- * $Id: subr_prof.c,v 1.23 1997/10/27 17:23:08 bde Exp $
+ * $Id: subr_prof.c,v 1.24 1997/11/06 19:29:18 phk Exp $
*/
#include <sys/param.h>
@@ -161,11 +161,11 @@ kmstartup(dummy)
startguprof(p);
for (i = 0; i < CALIB_SCALE; i++)
-#if defined(i386) && __GNUC__ >= 2
- asm("pushl %0; call __mcount; popl %%ecx"
- :
- : "i" (profil)
- : "ax", "bx", "cx", "dx", "memory");
+#if defined(__i386) && __GNUC__ >= 2
+ __asm("pushl %0; call __mcount; popl %%ecx"
+ :
+ : "i" (profil)
+ : "ax", "bx", "cx", "dx", "memory");
#else
#error
#endif
@@ -173,10 +173,10 @@ kmstartup(dummy)
startguprof(p);
for (i = 0; i < CALIB_SCALE; i++)
-#if defined(i386) && __GNUC__ >= 2
- asm("call mexitcount; 1:"
- : : : "ax", "bx", "cx", "dx", "memory");
- asm("movl $1b,%0" : "=rm" (tmp_addr));
+#if defined(__i386) && __GNUC__ >= 2
+ __asm("call mexitcount; 1:"
+ : : : "ax", "bx", "cx", "dx", "memory");
+ __asm("movl $1b,%0" : "=rm" (tmp_addr));
#else
#error
#endif