Date: Sat, 22 Feb 2003 23:03:29 -0800 From: David Schultz <das@FreeBSD.ORG> To: "Marc G. Fournier" <scrappy@hub.org> Cc: Luoqi Chen <lchen@briontech.com>, freebsd-stable@FreeBSD.ORG, Tor.Egge@cvsup.no.freebsd.org, freebsd-emulation@FreeBSD.ORG Subject: Re: Raising KVA_PAGES breaks linux emulation? Message-ID: <20030223070329.GB1053@HAL9000.homeunix.com> In-Reply-To: <20030222155404.F61064@hub.org> References: <AHEKICEOIHLOGINAFIINMENBCAAA.lchen@briontech.com> <20030222155404.F61064@hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Marc G. Fournier <scrappy@hub.org>: > On Sat, 22 Feb 2003, Luoqi Chen wrote: > > 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? For libc_r, we can do better than documenting the problem: we can fix it! All we have to do is ask the kernel for the value of KVA_PAGES via sysctl instead of relying on the static value. Most of the work is already done, so the fix is a 2-line patch. I'm going to run it by the libc_r maintainer ASAP if he hasn't dealt with it already, but I don't know about getting the fix into 4.8-RELEASE. I don't know what modules in general or the linuxolator specifically need KVA_PAGES for, but it may be possible to have them extract the information from a global symbol in the kernel proper, instead of using a compile-time constant. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030223070329.GB1053>