From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 29 21:45:25 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 525DC1065675 for ; Fri, 29 Feb 2008 21:45:25 +0000 (UTC) (envelope-from fchang@cs.ubc.ca) Received: from smtp.cs.ubc.ca (smtp.cs.ubc.ca [142.103.6.52]) by mx1.freebsd.org (Postfix) with ESMTP id 209E78FC25 for ; Fri, 29 Feb 2008 21:45:24 +0000 (UTC) (envelope-from fchang@cs.ubc.ca) Received: from cascade.cs.ubc.ca (cascade.cs.ubc.ca [142.103.7.7]) by smtp.cs.ubc.ca (8.13.7/8.13.6) with ESMTP id m1TLTNNI023712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 29 Feb 2008 13:29:24 -0800 Date: Fri, 29 Feb 2008 13:29:23 -0800 (PST) From: fchang@cs.ubc.ca To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Mailman-Approved-At: Fri, 29 Feb 2008 22:22:43 +0000 Subject: Updating vmware3 (and missing "avail_end" from /usr/include/machine/pmap.h) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 21:45:25 -0000 Hi all: I'm trying to get vmware3 working on FreeBSD RELEASE 7.0 for i386 I've resolved every compilation problem except one: the driver.c in vmware3 requires the "avail_end" variable in 6.2's /usr/include/machine/pmap.h but is missing from 7.0's /usr/include/machine/pmap.h The vmware3 code goes like this: r = malloc(sizeof *r, M_DEVBUF, M_WAITOK); if (r == NULL) return ENOMEM; if (avail_end > ISA_DMA_BOUNCE_THRESHOLD) high = trunc_page(ISA_DMA_BOUNCE_THRESHOLD); else high = trunc_page(avail_end); It turns out "avail_end" was removed from /usr/include/machine/pmap.h by revision 1.125, whose commit message reads: The global variable avail_end is redundant and only used once. Eliminate it. Make avail_start static to the pmap on amd64. (It no longer exists on other architectures.) So it appears that we can still get the value represented by the old avail_end variable, but I don't know anything about the kernel and I don't understand that comment. Could some kind soul help me decipher that so I can try to get vmware3 compilable again? Thank you!