Date: Mon, 31 Dec 2007 16:18:56 -0500 From: John Baldwin <jhb@freebsd.org> To: src-committers@freebsd.org Cc: cvs-src@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/i386/i386 machdep.c Message-ID: <200712311618.57452.jhb@freebsd.org> In-Reply-To: <200712312112.lBVLCjr0063694@repoman.freebsd.org> References: <200712312112.lBVLCjr0063694@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 31 December 2007 04:12:45 pm John Baldwin wrote:
> jhb 2007-12-31 21:12:45 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/i386/i386 machdep.c
> Log:
> Include a "pae" feature if an i386 kernel is built with PAE support.
>
> Obtained from: Yahoo!
I'm not sure if FreeBSD could use this, but at work we use this to auto-enable
PAE for any kernel modules compiled on a machine running PAE:
--- //depot/vendor/freebsd_6/src/sys/conf/kmod.mk 2006/09/13 02:28:28
+++ //depot/yahoo/ybsd_6/src/sys/conf/kmod.mk 2007/06/16 08:03:34
@@ -81,6 +82,11 @@
CFLAGS+= -D_KERNEL
CFLAGS+= -DKLD_MODULE
+ISPAE!= sysctl -n kern.features.pae 2>&1 || true
+.if ${ISPAE} == 1
+CFLAGS+= -DPAE
+.endif
+
# Don't use any standard or source-relative include directories.
.if ${CC} == "icc"
NOSTDINC= -X
--
John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712311618.57452.jhb>
