summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/profile.h
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-03-24 16:52:42 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-03-24 16:52:42 +0000
commitf8777bdaaccd944f0b3553ff14cdf9072124acf8 (patch)
treed194e3aec4d44ada11c8b12e846e591a74c00ae8 /sys/arch/sparc/include/profile.h
parent9b96dfaa80ad0fb9968937addb7ab614508aeebc (diff)
Use __asm in place of asm
Diffstat (limited to 'sys/arch/sparc/include/profile.h')
-rw-r--r--sys/arch/sparc/include/profile.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/arch/sparc/include/profile.h b/sys/arch/sparc/include/profile.h
index 2e6ea9a2c07..c34287882bb 100644
--- a/sys/arch/sparc/include/profile.h
+++ b/sys/arch/sparc/include/profile.h
@@ -47,22 +47,22 @@
#ifdef PIC
/* Inline expansion of PICCY_SET() (see <machine/asm.h>). */
#define MCOUNT \
- asm(".global mcount");\
- asm("mcount:");\
- asm("add %o7, 8, %o1");\
- asm("1: call 2f; nop; 2:");\
- asm("add %o7,__mcount-1b, %o2");\
- asm("ld [%o2], %o2");\
- asm("jmpl %o2, %g0");\
- asm("add %i7, 8, %o0");
+ __asm(".global mcount");\
+ __asm("mcount:");\
+ __asm("add %o7, 8, %o1");\
+ __asm("1: call 2f; nop; 2:");\
+ __asm("add %o7,__mcount-1b, %o2");\
+ __asm("ld [%o2], %o2");\
+ __asm("jmpl %o2, %g0");\
+ __asm("add %i7, 8, %o0");
#else
#define MCOUNT \
- asm(".global mcount");\
- asm("mcount:");\
- asm("add %i7, 8, %o0");\
- asm("sethi %hi(__mcount), %o2");\
- asm("jmpl %o2 + %lo(__mcount), %g0");\
- asm("add %o7, 8, %o1");
+ __asm(".global mcount");\
+ __asm("mcount:");\
+ __asm("add %i7, 8, %o0");\
+ __asm("sethi %hi(__mcount), %o2");\
+ __asm("jmpl %o2 + %lo(__mcount), %g0");\
+ __asm("add %o7, 8, %o1");
#endif
#define _MCOUNT_DECL static void _mcount