Source-Changes-HG archive

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

[src/yamt-km]: src/sys/arch/i386/i386 early in boot, use pmap_kenter_pa rathe...



details:   https://anonhg.NetBSD.org/src/rev/4043bfb96d2c
branches:  yamt-km
changeset: 573296:4043bfb96d2c
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Jan 26 08:33:14 2005 +0000

description:
early in boot, use pmap_kenter_pa rather than pmap_enter.

diffstat:

 sys/arch/i386/i386/machdep.c |  15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diffs (48 lines):

diff -r be1e42dc70c6 -r 4043bfb96d2c sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Tue Jan 25 13:03:14 2005 +0000
+++ b/sys/arch/i386/i386/machdep.c      Wed Jan 26 08:33:14 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.559.6.1 2005/01/25 13:01:08 yamt Exp $   */
+/*     $NetBSD: machdep.c,v 1.559.6.2 2005/01/26 08:33:14 yamt Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.559.6.1 2005/01/25 13:01:08 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.559.6.2 2005/01/26 08:33:14 yamt Exp $");
 
 #include "opt_beep.h"
 #include "opt_compat_ibcs2.h"
@@ -1741,9 +1741,8 @@
                }
 #endif
                paddr=realmode_reserved_start+realmode_reserved_size-PAGE_SIZE;
-               pmap_enter(pmap_kernel(), (vaddr_t)vtopte(0), paddr,
-                          VM_PROT_READ|VM_PROT_WRITE,
-                          PMAP_WIRED|VM_PROT_READ|VM_PROT_WRITE);
+               pmap_kenter_pa((vaddr_t)vtopte(0), paddr,
+                          VM_PROT_READ|VM_PROT_WRITE);
                pmap_update(pmap_kernel());
                /* make sure it is clean before using */
                memset(vtopte(0), 0, PAGE_SIZE);
@@ -1811,15 +1810,13 @@
        }
 #endif
 
-       pmap_enter(pmap_kernel(), idt_vaddr, idt_paddr,
-           VM_PROT_READ|VM_PROT_WRITE, PMAP_WIRED|VM_PROT_READ|VM_PROT_WRITE);
+       pmap_kenter_pa(idt_vaddr, idt_paddr, VM_PROT_READ|VM_PROT_WRITE);
        pmap_update(pmap_kernel());
        memset((void *)idt_vaddr, 0, PAGE_SIZE);
 
        idt = (struct gate_descriptor *)idt_vaddr;
 #ifdef I586_CPU
-       pmap_enter(pmap_kernel(), pentium_idt_vaddr, idt_paddr,
-           VM_PROT_READ, PMAP_WIRED|VM_PROT_READ);
+       pmap_kenter_pa(pentium_idt_vaddr, idt_paddr, VM_PROT_READ);
        pentium_idt = (union descriptor *)pentium_idt_vaddr;
 #endif
        pmap_update(pmap_kernel());



Home | Main Index | Thread Index | Old Index