diff options
author | alc <alc@FreeBSD.org> | 1999-06-13 19:20:25 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-06-13 19:20:25 +0000 |
commit | 70fc5132d7a8592588df684b19a93f758aa2168f (patch) | |
tree | a625d7e8ea8b28f48a29630bdd83593172d7bb94 /sys | |
parent | 6d320ce99c21de5b6d9bb2321c36949c91bd8420 (diff) | |
download | FreeBSD-src-70fc5132d7a8592588df684b19a93f758aa2168f.zip FreeBSD-src-70fc5132d7a8592588df684b19a93f758aa2168f.tar.gz |
Use pmap_kenter instead of pmap_enter to map the message buffer.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 5 | ||||
-rw-r--r-- | 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 4ed56d9..ae9df8b 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 4ed56d9..ae9df8b 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); |