Date: Wed, 10 Jun 2015 21:48:53 +0200 From: Mateusz Guzik <mjguzik@gmail.com> To: vbox@freebsd.org Subject: virtualbox kmod build fix after r284215 Message-ID: <20150610194853.GF23380@dft-labs.eu>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150610194853.GF23380>