From a15febf91b8b08ede52f1ca2ad5dca7df732d33d Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 30 Apr 2003 22:22:29 +0000 Subject: [PATCH] Add AMD64 hooks --- sys/conf/kern.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 602fab487c90..ee632125786d 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -52,6 +52,15 @@ CFLAGS+= -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata 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.