1 #include <sys/systm.h> 2 #include <sys/thread.h> 3 #include <sys/types.h> 4 #include <sys/proc.h> 5 6 #include <vm/vm_map.h> 7 8 int 9 copyinstr(const void *udaddr, void *kaddr, size_t len, size_t *res) 10 { 11 return curthread->td_proc->p_vmspace->vm_pmap.copyinstr(udaddr, kaddr, len, res); 12 } 13 14 int 15 copyin(const void *udaddr, void *kaddr, size_t len) 16 { 17 return curthread->td_proc->p_vmspace->vm_pmap.copyin(udaddr, kaddr, len); 18 } 19 20 int 21 copyout(const void *kaddr, void *udaddr, size_t len) 22 { 23 return curthread->td_proc->p_vmspace->vm_pmap.copyout(kaddr, udaddr, len); 24 25 } 26 27 int 28 fubyte(const void *base) 29 { 30 return curthread->td_proc->p_vmspace->vm_pmap.fubyte(base); 31 } 32 33 int 34 subyte (void *base, int byte) 35 { 36 return curthread->td_proc->p_vmspace->vm_pmap.subyte(base, byte); 37 } 38 39 long 40 fuword(const void *base) 41 { 42 return curthread->td_proc->p_vmspace->vm_pmap.fuword(base); 43 } 44 45 int 46 suword(void *base, long word) 47 { 48 return curthread->td_proc->p_vmspace->vm_pmap.suword(base, word); 49 } 50 51 int 52 suword32(void *base, int word) 53 { 54 return curthread->td_proc->p_vmspace->vm_pmap.suword32(base, word); 55 } 56