2 #include <sys/thread.h>
9 copyinstr(const void *udaddr
, void *kaddr
, size_t len
, size_t *res
)
11 return curthread
->td_proc
->p_vmspace
->vm_pmap
.copyinstr(udaddr
, kaddr
, len
, res
);
15 copyin(const void *udaddr
, void *kaddr
, size_t len
)
17 return curthread
->td_proc
->p_vmspace
->vm_pmap
.copyin(udaddr
, kaddr
, len
);
21 copyout(const void *kaddr
, void *udaddr
, size_t len
)
23 return curthread
->td_proc
->p_vmspace
->vm_pmap
.copyout(kaddr
, udaddr
, len
);
28 fubyte(const uint8_t *base
)
30 return curthread
->td_proc
->p_vmspace
->vm_pmap
.fubyte(base
);
34 subyte(uint8_t *base
, uint8_t byte
)
36 return curthread
->td_proc
->p_vmspace
->vm_pmap
.subyte(base
, byte
);
40 fuword32(const uint32_t *base
)
42 return curthread
->td_proc
->p_vmspace
->vm_pmap
.fuword32(base
);
46 fuword64(const uint64_t *base
)
48 return curthread
->td_proc
->p_vmspace
->vm_pmap
.fuword64(base
);
52 suword64(uint64_t *base
, uint64_t word
)
54 return curthread
->td_proc
->p_vmspace
->vm_pmap
.suword64(base
, word
);
58 suword32(uint32_t *base
, int word
)
60 return curthread
->td_proc
->p_vmspace
->vm_pmap
.suword32(base
, word
);
64 swapu32(volatile uint32_t *base
, uint32_t v
)
66 return curthread
->td_proc
->p_vmspace
->vm_pmap
.swapu32(base
, v
);
70 swapu64(volatile uint64_t *base
, uint64_t v
)
72 return curthread
->td_proc
->p_vmspace
->vm_pmap
.swapu64(base
, v
);