summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2005-04-01 20:00:11 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2005-04-01 20:00:11 +0000
commit98df9218daac2006d7cf5a914544ab8614d31e3b (patch)
treec33b91d98e8867bbb1f42b28ab23638d2003f368 /sys/compat/linux/linux_misc.c
parent5ec8c336e74d015548bbaf02c24f7beaeef7dbfa (diff)
Notes
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 7bbeaff0c999..85cd13b909a8 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -333,7 +333,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args)
/* Pull in executable header into kernel_map */
error = vm_mmap(kernel_map, (vm_offset_t *)&a_out, PAGE_SIZE,
- VM_PROT_READ, VM_PROT_READ, 0, (caddr_t)vp, 0);
+ VM_PROT_READ, VM_PROT_READ, 0, OBJT_VNODE, vp, 0);
/*
* Lock no longer needed
*/
@@ -422,7 +422,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args)
/* map file into kernel_map */
error = vm_mmap(kernel_map, &buffer,
round_page(a_out->a_text + a_out->a_data + file_offset),
- VM_PROT_READ, VM_PROT_READ, 0, (caddr_t)vp,
+ VM_PROT_READ, VM_PROT_READ, 0, OBJT_VNODE, vp,
trunc_page(file_offset));
if (error)
goto cleanup;
@@ -453,7 +453,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args)
*/
error = vm_mmap(&td->td_proc->p_vmspace->vm_map, &vmaddr,
a_out->a_text + a_out->a_data, VM_PROT_ALL, VM_PROT_ALL,
- MAP_PRIVATE | MAP_FIXED, (caddr_t)vp, file_offset);
+ MAP_PRIVATE | MAP_FIXED, OBJT_VNODE, vp, file_offset);
if (error)
goto cleanup;
}