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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to