diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-12-16 07:51:33 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-12-16 07:51:33 +0000 |
commit | 355d5e34332171091bec89fc61b3d3ec86a56e69 (patch) | |
tree | 826a2775e568a695af15c912bc919e94b435c9d9 /sys/sun4v | |
parent | 4e5f5353fb79b1f0a4921ed62ae573f4e67f7bc6 (diff) | |
download | FreeBSD-src-355d5e34332171091bec89fc61b3d3ec86a56e69.zip FreeBSD-src-355d5e34332171091bec89fc61b3d3ec86a56e69.tar.gz |
- KASSERT takes two arguments
- a cast is needed to quiet warnings
Diffstat (limited to 'sys/sun4v')
-rw-r--r-- | sys/sun4v/sun4v/vm_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |