- KASSERT takes two arguments

- a cast is needed to quiet warnings
This commit is contained in:
Kip Macy 2006-12-16 07:51:33 +00:00
parent bd9275b4c4
commit 7cfff9ae9a

View File

@ -122,7 +122,7 @@ cpu_thread_setup(struct thread *td)
pcb->pcb_nsaved = 0;
td->td_frame = (struct trapframe *)pcb - 1;
pcb = (struct pcb *)TLB_PHYS_TO_DIRECT(vtophys((vm_offset_t)pcb));
KASSERT(pcb > VM_MIN_DIRECT_ADDRESS);
KASSERT(pcb > (struct pcb *)VM_MIN_DIRECT_ADDRESS,("pcb is NULL"));
td->td_pcb = pcb;
}