From dabd891d6e9fa9277f61c9b02c07d06c5993ea2b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 13 Jun 1999 19:20:25 +0000 Subject: [PATCH] Use pmap_kenter instead of pmap_enter to map the message buffer. --- sys/amd64/amd64/machdep.c | 5 ++--- sys/i386/i386/machdep.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 4ed56d91e85e..ae9df8b20268 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.339 1999/06/01 23:45:46 jlemon Exp $ + * $Id: machdep.c,v 1.340 1999/06/10 02:48:51 jlemon Exp $ */ #include "apm.h" @@ -1666,8 +1666,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/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 4ed56d91e85e..ae9df8b20268 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.339 1999/06/01 23:45:46 jlemon Exp $ + * $Id: machdep.c,v 1.340 1999/06/10 02:48:51 jlemon Exp $ */ #include "apm.h" @@ -1666,8 +1666,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);