summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/profile.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/include/profile.h b/sys/arch/i386/include/profile.h
index 163ff3afc17..f7035d6ae99 100644
--- a/sys/arch/i386/include/profile.h
+++ b/sys/arch/i386/include/profile.h
@@ -35,10 +35,10 @@
* @(#)profile.h 8.1 (Berkeley) 6/11/93
*/
-#define _MCOUNT_DECL static inline void _mcount
+#define _MCOUNT_DECL static __inline void _mcount
#define MCOUNT \
-extern void mcount() asm("mcount"); \
+extern void mcount() __asm("mcount"); \
void \
mcount() \
{ \
@@ -49,11 +49,11 @@ mcount() \
* \
* selfpc = pc pushed by mcount call \
*/ \
- asm("movl 4(%%ebp),%0" : "=r" (selfpc)); \
+ __asm("movl 4(%%ebp),%0" : "=r" (selfpc)); \
/* \
* frompcindex = pc pushed by call into self. \
*/ \
- asm("movl (%%ebp),%0;movl 4(%0),%0" : "=r" (frompcindex)); \
+ __asm("movl (%%ebp),%0;movl 4(%0),%0" : "=r" (frompcindex)); \
_mcount(frompcindex, selfpc); \
}