From owner-freebsd-emulation Sat Feb 22 11:53:32 2003 Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CA4537B405; Sat, 22 Feb 2003 11:53:31 -0800 (PST) Received: from bricore.com (adsl-64-168-71-68.dsl.snfc21.pacbell.net [64.168.71.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C10A43FB1; Sat, 22 Feb 2003 11:53:30 -0800 (PST) (envelope-from lchen@briontech.com) Received: from luoqi (luoqi.bricore.com [192.168.1.63]) by bricore.com (8.12.6/8.12.6) with SMTP id h1MJrHFA027119; Sat, 22 Feb 2003 11:53:18 -0800 (PST) (envelope-from lchen@briontech.com) From: "Luoqi Chen" To: "Marc G. Fournier" Cc: , , Subject: RE: Raising KVA_PAGES breaks linux emulation? Date: Sat, 22 Feb 2003 11:56:20 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030222152602.C61064@hub.org> X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > For instance, since setting KVA_PAGES in the kernel config doesn't cover > everything, and, as I've experienced so far, causes some serious problems, > would it be better to suggest that someone sets it in make.conf? From a > quick perusal of /etc/defaults/make.conf, my guess is that I'd have to > set: > > COPTFLAGS= -O -pipe -DKVA_PAGES=512 > -and- > CFLAGS= -O -pipe -DKVA_PAGES=512 > > Will that cover it all, or is there a problem with doing it that way? Or > is there a better way of doing this? > Module builds seem to use CFLAGS (while kernel builds use COPTFLAGS). A better way is to have kernel Makefile passing opt_global.h to the modules. The best solution for this particular problem would probably be changing USRSTACK to a global variable instead of a #define. -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message