diff options
| author | Jake Burkholder <jake@FreeBSD.org> | 2002-06-05 15:36:57 +0000 |
|---|---|---|
| committer | Jake Burkholder <jake@FreeBSD.org> | 2002-06-05 15:36:57 +0000 |
| commit | a41c3573faa67af8e9c6baec28337b95b9703ab9 (patch) | |
| tree | 2282f34f42cbd2301a8cd88b88c4a5569c646b3d | |
| parent | 6332b52c26385062dac999875e04387df277e0ff (diff) | |
Notes
| -rw-r--r-- | sys/sparc64/sparc64/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index 477e7457c6ac0..51ec4d4663ec4 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -205,7 +205,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) { struct pcpu *pc; vm_offset_t end; - vm_offset_t off; + vm_offset_t va; caddr_t kmdp; end = 0; @@ -324,8 +324,8 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) /* * Map and initialize the message buffer (after setting trap table). */ - for (off = 0; off < round_page(MSGBUF_SIZE); off += PAGE_SIZE) - pmap_kenter((vm_offset_t)msgbufp + off, msgbuf_phys + off); + va = (vm_offset_t)msgbufp; + pmap_map(&va, msgbuf_phys, msgbuf_phys + MSGBUF_SIZE, 0); msgbufinit(msgbufp, MSGBUF_SIZE); mutex_init(); |
