Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/sparc give memfault_sun*() some entry points ...



details:   https://anonhg.NetBSD.org/src/rev/7046fcc4214a
branches:  trunk
changeset: 762088:7046fcc4214a
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Feb 15 11:30:21 2011 +0000

description:
give memfault_sun*() some entry points that both gdb and ddb will find.

diffstat:

 sys/arch/sparc/sparc/locore.s |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 302823c30acc -r 7046fcc4214a sys/arch/sparc/sparc/locore.s
--- a/sys/arch/sparc/sparc/locore.s     Tue Feb 15 11:21:32 2011 +0000
+++ b/sys/arch/sparc/sparc/locore.s     Tue Feb 15 11:30:21 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.261 2011/02/15 10:59:25 mrg Exp $ */
+/*     $NetBSD: locore.s,v 1.262 2011/02/15 11:30:21 mrg Exp $ */
 
 /*
  * Copyright (c) 1996 Paul Kranenburg
@@ -1786,6 +1786,7 @@
  */
 
 #if defined(SUN4)
+_ENTRY(memfault_sun4)
 memfault_sun4:
        TRAP_SETUP(-CCFSZ-80)
        ! tally interrupt (curcpu()->cpu_data.cpu_nfault++) (clobbers %o0,%o1)
@@ -1851,8 +1852,9 @@
 #endif /* SUN4C || SUN4M */
 #endif /* SUN4 */
 
+#if defined(SUN4C)
+_ENTRY(memfault_sun4c)
 memfault_sun4c:
-#if defined(SUN4C)
        TRAP_SETUP(-CCFSZ-80)
        ! tally fault (curcpu()->cpu_data.cpu_nfault++) (clobbers %o0,%o1,%o2)
        INCR64(CPUINFO_VA + CPUINFO_NFAULT)
@@ -1951,6 +1953,7 @@
 #endif /* SUN4C */
 
 #if defined(SUN4M)
+_ENTRY(memfault_sun4m)
 memfault_sun4m:
        sethi   %hi(CPUINFO_VA), %l4
        ld      [%l4 + %lo(CPUINFO_VA+CPUINFO_GETSYNCFLT)], %l5



Home | Main Index | Thread Index | Old Index