Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 db_disasm(): pte is in kernel address spa...
details: https://anonhg.NetBSD.org/src/rev/921186e24f04
branches: trunk
changeset: 499961:921186e24f04
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Dec 02 19:34:54 2000 +0000
description:
db_disasm(): pte is in kernel address space, so use kvtopte() to get pde,
otherwise it would trip over KASSERT() in vtopte() and cycle
diffstat:
sys/arch/i386/i386/db_disasm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r c0d6a260ad0b -r 921186e24f04 sys/arch/i386/i386/db_disasm.c
--- a/sys/arch/i386/i386/db_disasm.c Sat Dec 02 18:04:45 2000 +0000
+++ b/sys/arch/i386/i386/db_disasm.c Sat Dec 02 19:34:54 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.22 2000/11/23 21:44:52 chs Exp $ */
+/* $NetBSD: db_disasm.c,v 1.23 2000/12/02 19:34:54 jdolecek Exp $ */
/*
* Mach Operating System
@@ -1101,7 +1101,7 @@
pte = kvtopte((vaddr_t)loc);
else
pte = vtopte((vaddr_t)loc);
- pde = vtopte((vaddr_t)pte);
+ pde = kvtopte((vaddr_t)pte);
if ((*pde & PG_V) == 0 || (*pte & PG_V) == 0) {
db_printf("invalid address\n");
return (loc);
Home |
Main Index |
Thread Index |
Old Index