Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/arch/sparc64/include pull up 1.4 (approved by thorp...
details: https://anonhg.NetBSD.org/src/rev/9dec5a2cf0fb
branches: netbsd-1-5
changeset: 488949:9dec5a2cf0fb
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Aug 07 01:26:37 2000 +0000
description:
pull up 1.4 (approved by thorpej):
>Get kernel profiling to work. Now if only gprof worked....
diffstat:
sys/arch/sparc64/include/profile.h | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (49 lines):
diff -r a52288847c76 -r 9dec5a2cf0fb sys/arch/sparc64/include/profile.h
--- a/sys/arch/sparc64/include/profile.h Mon Aug 07 01:26:24 2000 +0000
+++ b/sys/arch/sparc64/include/profile.h Mon Aug 07 01:26:37 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: profile.h,v 1.3 1998/10/08 02:31:40 eeh Exp $ */
+/* $NetBSD: profile.h,v 1.3.22.1 2000/08/07 01:26:37 mrg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,16 +45,16 @@
*/
#if defined(ELF)||defined(__ELF__)
-#define _MCOUNT_SYM "_mcount"
+#define _MCOUNT_SYM "__mcount"
#else
-#define _MCOUNT_SYM "__mcount"
+#define _MCOUNT_SYM "___mcount"
#endif
#ifdef PIC
/* Inline expansion of PICCY_SET() (see <machine/asm.h>). */
#define MCOUNT \
- __asm__(".global mcount");\
- __asm__("mcount:");\
+ __asm__(".global _mcount");\
+ __asm__("_mcount:");\
__asm__("add %o7, 8, %o1");\
__asm__("1: rd %pc, %o2");\
__asm__("add %o2," _MCOUNT_SYM "-1b, %o2");\
@@ -63,15 +63,15 @@
__asm__("add %i7, 8, %o0");
#else
#define MCOUNT \
- __asm__(".global mcount");\
- __asm__("mcount:");\
+ __asm__(".global _mcount");\
+ __asm__("_mcount:");\
__asm__("add %i7, 8, %o0");\
__asm__("sethi %hi(" _MCOUNT_SYM "), %o2");\
__asm__("jmpl %o2 + %lo(" _MCOUNT_SYM "), %g0");\
__asm__("add %o7, 8, %o1");
#endif
-#define _MCOUNT_DECL static void _mcount
+#define _MCOUNT_DECL static void __mcount
#ifdef _KERNEL
/*
Home |
Main Index |
Thread Index |
Old Index