You're loading this through kldload? Then I'd imagine that curthread->td_proc->p_vmspace->vm_map refers to the vm_map of the kldload process, not the kernel. Try using kernel_map directly. Ryan Stone