From abd825f27cc52659e651953e65f79d8470ee2696 Mon Sep 17 00:00:00 2001 From: kato Date: Thu, 17 Jun 1999 11:09:39 +0000 Subject: Sync with sys/i386/i386/machdep.c revision up to 1.341. --- sys/pc98/i386/machdep.c | 7 +++---- sys/pc98/pc98/machdep.c | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 37917bf..e0b85b1 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.117 1999/05/12 21:39:07 luoqi Exp $ + * $Id: machdep.c,v 1.118 1999/06/03 13:49:52 kato Exp $ */ #include "apm.h" @@ -1602,7 +1602,7 @@ physmap_done: * round up the start address and round down the end address. */ for (i = 0; i <= physmap_idx; i += 2) { - int end; + vm_offset_t end; end = ptoa(Maxmem); if (physmap[i + 1] < end) @@ -1902,8 +1902,7 @@ init386(first) /* Map the message buffer. */ for (off = 0; off < round_page(MSGBUF_SIZE); off += PAGE_SIZE) - pmap_enter(kernel_pmap, (vm_offset_t)msgbufp + off, - avail_end + off, VM_PROT_ALL, TRUE); + pmap_kenter((vm_offset_t)msgbufp + off, avail_end + off); msgbufinit(msgbufp, MSGBUF_SIZE); diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 37917bf..e0b85b1 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.117 1999/05/12 21:39:07 luoqi Exp $ + * $Id: machdep.c,v 1.118 1999/06/03 13:49:52 kato Exp $ */ #include "apm.h" @@ -1602,7 +1602,7 @@ physmap_done: * round up the start address and round down the end address. */ for (i = 0; i <= physmap_idx; i += 2) { - int end; + vm_offset_t end; end = ptoa(Maxmem); if (physmap[i + 1] < end) @@ -1902,8 +1902,7 @@ init386(first) /* Map the message buffer. */ for (off = 0; off < round_page(MSGBUF_SIZE); off += PAGE_SIZE) - pmap_enter(kernel_pmap, (vm_offset_t)msgbufp + off, - avail_end + off, VM_PROT_ALL, TRUE); + pmap_kenter((vm_offset_t)msgbufp + off, avail_end + off); msgbufinit(msgbufp, MSGBUF_SIZE); -- cgit v1.1