Module Name: src Committed By: mrg Date: Tue Feb 15 11:30:22 UTC 2011
Modified Files: src/sys/arch/sparc/sparc: locore.s Log Message: give memfault_sun*() some entry points that both gdb and ddb will find. To generate a diff of this commit: cvs rdiff -u -r1.261 -r1.262 src/sys/arch/sparc/sparc/locore.s Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc/sparc/locore.s diff -u src/sys/arch/sparc/sparc/locore.s:1.261 src/sys/arch/sparc/sparc/locore.s:1.262 --- src/sys/arch/sparc/sparc/locore.s:1.261 Tue Feb 15 10:59:25 2011 +++ src/sys/arch/sparc/sparc/locore.s Tue Feb 15 11:30:21 2011 @@ -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 */ -memfault_sun4c: #if defined(SUN4C) +_ENTRY(memfault_sun4c) +memfault_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