From 355d5e34332171091bec89fc61b3d3ec86a56e69 Mon Sep 17 00:00:00 2001 From: kmacy Date: Sat, 16 Dec 2006 07:51:33 +0000 Subject: - KASSERT takes two arguments - a cast is needed to quiet warnings --- sys/sun4v/sun4v/vm_machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/sun4v/sun4v/vm_machdep.c b/sys/sun4v/sun4v/vm_machdep.c index 5f89aa2..89807df 100644 --- a/sys/sun4v/sun4v/vm_machdep.c +++ b/sys/sun4v/sun4v/vm_machdep.c @@ -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; } -- cgit v1.1