summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_prof.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-04-15 17:47:40 +0000
committerbde <bde@FreeBSD.org>1998-04-15 17:47:40 +0000
commitb598f559b2947bb9582b53221185bb27d86cd68f (patch)
treef0a3b1121a7c68f5b6b630a3981fb3a4fbbc9c43 /sys/kern/subr_prof.c
parent37b60f29dd0d528b8bc950b0b559f304b73db9ec (diff)
downloadFreeBSD-src-b598f559b2947bb9582b53221185bb27d86cd68f.zip
FreeBSD-src-b598f559b2947bb9582b53221185bb27d86cd68f.tar.gz
Support compiling with `gcc -ansi'.
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 0d571e1..c674c58 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
OpenPOWER on IntegriCloud