diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-11 05:35:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-11 05:35:37 +0000 |
commit | e511a52691ddb2290f5d3c9ca6e9f0fc3b320289 (patch) | |
tree | f68510b774a71e2a0879cb013e3abd7a15665abc /sys/arch/sparc/include/profile.h | |
parent | fc98d7c9a0046f274410f903f952ef6224f68e10 (diff) |
netbsd port, now we merge our changes back in
Diffstat (limited to 'sys/arch/sparc/include/profile.h')
-rw-r--r-- | sys/arch/sparc/include/profile.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/sys/arch/sparc/include/profile.h b/sys/arch/sparc/include/profile.h index c34287882bb..0a27b368163 100644 --- a/sys/arch/sparc/include/profile.h +++ b/sys/arch/sparc/include/profile.h @@ -1,4 +1,4 @@ -/* $NetBSD: profile.h,v 1.4 1995/08/14 15:44:36 pk Exp $ */ +/* $NetBSD: profile.h,v 1.6 1996/04/08 20:55:36 pk Exp $ */ /* * Copyright (c) 1992, 1993 @@ -47,25 +47,26 @@ #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 +_MCOUNT_DECL __P((unsigned long, unsigned long)); #ifdef _KERNEL /* |