From owner-freebsd-emulation Sat Feb 22 11:56:49 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 E24A737B406; Sat, 22 Feb 2003 11:56:46 -0800 (PST) Received: from hub.org (hub.org [64.49.215.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F5EE43F3F; Sat, 22 Feb 2003 11:56:46 -0800 (PST) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [64.49.215.141]) by hub.org (Postfix) with ESMTP id 9977A8B6B0B; Sat, 22 Feb 2003 15:56:44 -0400 (AST) Date: Sat, 22 Feb 2003 15:56:44 -0400 (AST) From: "Marc G. Fournier" To: Luoqi Chen Cc: freebsd-stable@FreeBSD.ORG, Tor.Egge@cvsup.no.freebsd.org, freebsd-emulation@FreeBSD.ORG Subject: RE: Raising KVA_PAGES breaks linux emulation? In-Reply-To: Message-ID: <20030222155404.F61064@hub.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Sat, 22 Feb 2003, Luoqi Chen wrote: > > 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). Right, and, as was found out, this doesn't just affect kernel+modules, but libc_r as well ... anything else it might affect? :( > 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. I realize we're in a freeze for 4.8-RELEASE, but sicne KVA_PAGES is documented, and its use does break things, any chance on getting this fixed before the RELEASE? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message