summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-04-30 22:22:29 +0000
committerpeter <peter@FreeBSD.org>2003-04-30 22:22:29 +0000
commitfc7b79828312b4b1142bbd52106ad4c34459fa17 (patch)
treef074d91320b5fd163d455eabd51d5ca6131466f2 /sys/conf
parent660f8f5516052f5c6dd9bb44fcd61926ef0f7855 (diff)
downloadFreeBSD-src-fc7b79828312b4b1142bbd52106ad4c34459fa17.zip
FreeBSD-src-fc7b79828312b4b1142bbd52106ad4c34459fa17.tar.gz
Add AMD64 hooks
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kern.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 602fab4..ee63212 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -53,6 +53,15 @@ CFLAGS+= -mcmodel=medlow -msoft-float
.endif
#
+# For AMD64, use a medium model for now. We'll switch to "kernel"
+# once pmap is ready. Be excessively careful to not generate FPU code.
+#
+.if ${MACHINE_ARCH} == "amd64"
+CFLAGS+= -mcmodel=medium -mno-red-zone \
+ -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float
+.endif
+
+#
# GCC 3.0 and above like to do certain optimizations based on the
# assumption that the program is linked against libc. Stop this.
#
OpenPOWER on IntegriCloud