cvs commit: src/sys/i386/i386 machdep.c
John Baldwin
jhb at freebsd.org
Mon Dec 31 13:38:56 PST 2007
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
More information about the cvs-src
mailing list