virtualbox kmod build fix after r284215
Mateusz Guzik
mjguzik at gmail.com
Wed Jun 10 19:48:59 UTC 2015
Hello,
the following is needed since r284215 (__FreeBSD_version 1100077):
--- ./src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c.orig 2015-06-10 19:30:28.355276494 +0000
+++ ./src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c 2015-06-10 19:30:41.280304985 +0000
@@ -747,7 +747,7 @@
{
/** @todo: is this needed?. */
PROC_LOCK(pProc);
- AddrR3 = round_page((vm_offset_t)pProc->p_vmspace->vm_daddr + lim_max(pProc, RLIMIT_DATA));
+ AddrR3 = round_page((vm_offset_t)pProc->p_vmspace->vm_daddr + lim_max_proc(pProc, RLIMIT_DATA));
PROC_UNLOCK(pProc);
}
else
Interestingly enough for some reason the build does not fail without the patch,
even though resulting code is clearly broken as lim_max now expects a thread
argument.
--
Mateusz Guzik <mjguzik gmail.com>
More information about the freebsd-emulation
mailing list