Sync with sys/i386/i386/machdep.c revision up to 1.341.

This commit is contained in:
kato 1999-06-17 11:09:39 +00:00
parent 1d4cad9fb9
commit 9a29dc4060
2 changed files with 6 additions and 8 deletions

View File

@ -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 @@ getmemsize(int first)
* 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);

View File

@ -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 @@ getmemsize(int first)
* 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);