From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 10 19:48:59 2015 Return-Path: Delivered-To: vbox@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 863AE912 for ; Wed, 10 Jun 2015 19:48:59 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1D9391C24 for ; Wed, 10 Jun 2015 19:48:59 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by wiwd19 with SMTP id d19so58210320wiw.0 for ; Wed, 10 Jun 2015 12:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=gZr+4aL96jwGFhvOEWGxkADjKdFw6bI33tc0eoSb9ns=; b=lvWIHjQSCrsjPdhzTdAAhCN/JSm+ZBwPa0sbYF8vyH1Yjv9ODuVUNo5f1tXAX66JIX uGjj1CCQnEkKkcgEK35p+0Gd4q7V2YBX7KzF8CZcrkUd8GWl2cM+0ibspUHhHdbekRIx +AXF7Mbgk9tbar2ZN/IKVdR+E31dHStInaf6IXI4IaXC7XdGJCG4fcs2ap5CKXmQVTPm SvMuMGyTv20b1fublnZEiqGiVsXVjiif8g+dTJN4MO+Q/LqjL3xNAMrZX8s+DEtFzG/v m7Eiihcce4TulH7lcJNelxF+n2LkAi2ElC3AfslgZTefRQdVjDIz8vFFSmOB71D6OJsm G3yg== X-Received: by 10.180.87.38 with SMTP id u6mr11653584wiz.43.1433965737598; Wed, 10 Jun 2015 12:48:57 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPSA id 12sm15995047wjw.17.2015.06.10.12.48.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 10 Jun 2015 12:48:56 -0700 (PDT) Date: Wed, 10 Jun 2015 21:48:53 +0200 From: Mateusz Guzik To: vbox@freebsd.org Subject: virtualbox kmod build fix after r284215 Message-ID: <20150610194853.GF23380@dft-labs.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Wed, 10 Jun 2015 21:03:35 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2015 19:48:59 -0000 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