Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 new function dump_itlb.
details: https://anonhg.NetBSD.org/src/rev/76a2dd66f2a6
branches: trunk
changeset: 540828:76a2dd66f2a6
user: petrov <petrov%NetBSD.org@localhost>
date: Wed Dec 25 22:05:10 2002 +0000
description:
new function dump_itlb.
diffstat:
sys/arch/sparc64/sparc64/locore.s | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diffs (47 lines):
diff -r 5585725eefb5 -r 76a2dd66f2a6 sys/arch/sparc64/sparc64/locore.s
--- a/sys/arch/sparc64/sparc64/locore.s Wed Dec 25 21:19:15 2002 +0000
+++ b/sys/arch/sparc64/sparc64/locore.s Wed Dec 25 22:05:10 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.159 2002/09/22 07:19:47 chs Exp $ */
+/* $NetBSD: locore.s,v 1.160 2002/12/25 22:05:10 petrov Exp $ */
/*
* Copyright (c) 1996-2002 Eduardo Horvath
@@ -5123,7 +5123,6 @@
.globl _C_LABEL(endtrapcode)
_C_LABEL(endtrapcode):
-#ifdef DDB
!!!
!!! Dump the DTLB to phys address in %o0 and print it
!!!
@@ -5151,6 +5150,29 @@
retl
nop
+ .globl dump_itlb
+dump_itlb:
+ clr %o1
+ add %o1, (64 * 8), %o3
+1:
+ ldxa [%o1] ASI_IMMU_TLB_TAG, %o2
+ membar #Sync
+ stx %o2, [%o0]
+ membar #Sync
+ inc 8, %o0
+ ldxa [%o1] ASI_IMMU_TLB_DATA, %o4
+ membar #Sync
+ inc 8, %o1
+ stx %o4, [%o0]
+ cmp %o1, %o3
+ membar #Sync
+ bl 1b
+ inc 8, %o0
+
+ retl
+ nop
+
+#ifdef DDB
#ifdef _LP64
.globl print_dtlb
print_dtlb:
Home |
Main Index |
Thread Index |
Old Index