summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/profile.h
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-08-08 08:27:49 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-08-08 08:27:49 +0000
commitc6af50ae96c114059441edde31a2879102e32d99 (patch)
treee77d44cd72b4d881fb3461d76bdd50f77adc0966 /sys/arch/sparc/include/profile.h
parentc1492b0f5209b759b0ab6624db56b310c28e48e2 (diff)
Mostly sync to NetBSD-current 970804.
GENERIC currently compiles and runs; some devices (isp) are not complete and not yet enabled.
Diffstat (limited to 'sys/arch/sparc/include/profile.h')
-rw-r--r--sys/arch/sparc/include/profile.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/arch/sparc/include/profile.h b/sys/arch/sparc/include/profile.h
index 0a27b368163..13af168d2f3 100644
--- a/sys/arch/sparc/include/profile.h
+++ b/sys/arch/sparc/include/profile.h
@@ -1,4 +1,5 @@
-/* $NetBSD: profile.h,v 1.6 1996/04/08 20:55:36 pk Exp $ */
+/* $OpenBSD: profile.h,v 1.4 1997/08/08 08:26:40 downsj Exp $ */
+/* $NetBSD: profile.h,v 1.8 1997/02/01 20:56:40 mrg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -47,26 +48,25 @@
#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
/*