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 go back to the first version of the pte/p...



details:   https://anonhg.NetBSD.org/src/rev/de02cf082c51
branches:  trunk
changeset: 500128:de02cf082c51
user:      chs <chs%NetBSD.org@localhost>
date:      Wed Dec 06 03:20:35 2000 +0000

description:
go back to the first version of the pte/pde dance now that kvtopte()
has been changed to consisently return a pointer into the recursive
page table mapping.

diffstat:

 sys/arch/i386/i386/db_disasm.c |  15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diffs (34 lines):

diff -r 1d3cf2c89c3b -r de02cf082c51 sys/arch/i386/i386/db_disasm.c
--- a/sys/arch/i386/i386/db_disasm.c    Wed Dec 06 03:13:47 2000 +0000
+++ b/sys/arch/i386/i386/db_disasm.c    Wed Dec 06 03:20:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_disasm.c,v 1.25 2000/12/05 10:45:09 jdolecek Exp $  */
+/*     $NetBSD: db_disasm.c,v 1.26 2000/12/06 03:20:35 chs Exp $       */
 
 /* 
  * Mach Operating System
@@ -1096,21 +1096,14 @@
        /*
         * Don't try to disassemble the location if the mapping is invalid.
         * If we do, we'll fault, and end up debugging the debugger!
+        * in a LARGEPAGES kernel, "pte" is really the pde and "pde" is
+        * really the entry for the pdp itself.
         */
        if ((vaddr_t)loc >= VM_MIN_KERNEL_ADDRESS)
                pte = kvtopte((vaddr_t)loc);
        else
                pte = vtopte((vaddr_t)loc);
-
-       /*
-        * pte is normally in user address space, but may also be in kernel
-        * address space for LARGEPAGES kernel.
-        */
-       if ((vaddr_t)pte >= VM_MIN_KERNEL_ADDRESS)
-               pde = kvtopte((vaddr_t)pte);
-       else
-               pde = vtopte((vaddr_t)pte);
-
+       pde = vtopte((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