Use pmap_map instead of pmap_kenter to map the message buffer. Its too
early for pmap_kenter.
This commit is contained in:
parent
6332b52c26
commit
a41c3573fa
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user