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/sparc64 pull up 1.92 (approved by thor...



details:   https://anonhg.NetBSD.org/src/rev/bd5c6ab4af22
branches:  netbsd-1-5
changeset: 488950:bd5c6ab4af22
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Aug 07 01:27:14 2000 +0000

description:
pull up 1.92 (approved by thorpej):
>Get kernel profiling to work.  Now if only gprof worked....

diffstat:

 sys/arch/sparc64/sparc64/locore.s |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 9dec5a2cf0fb -r bd5c6ab4af22 sys/arch/sparc64/sparc64/locore.s
--- a/sys/arch/sparc64/sparc64/locore.s Mon Aug 07 01:26:37 2000 +0000
+++ b/sys/arch/sparc64/sparc64/locore.s Mon Aug 07 01:27:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.62.2.4 2000/08/07 01:16:34 mrg Exp $      */
+/*     $NetBSD: locore.s,v 1.62.2.5 2000/08/07 01:27:14 mrg Exp $      */
 /*
  * Copyright (c) 1996-1999 Eduardo Horvath
  * Copyright (c) 1996 Paul Kranenburg
@@ -6868,12 +6868,17 @@
 #endif
 
 #ifdef GPROF
-       .globl  mcount
+       .globl  _mcount
 #define        ENTRY(x) \
        .globl _C_LABEL(x); _C_LABEL(x): ; \
+       .data; \
+       .align 8; \
+0:     .uaword 0; .uaword 0; \
+       .text;  \
        save    %sp, -CC64FSZ, %sp; \
-       call    mcount; \
-       nop; \
+       sethi   %hi(0b), %o0; \
+       call    _mcount; \
+       or      %o0, %lo(0b), %o0; \
        restore
 #else
 #define        ENTRY(x)        .globl _C_LABEL(x); _C_LABEL(x):



Home | Main Index | Thread Index | Old Index