|
@@ -31,6 +31,9 @@ ifeq ($(CONFIG_X86_32),y)
|
|
|
|
|
|
KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return
|
|
|
|
|
|
+ # Don't autogenerate SSE instructions
|
|
|
+ KBUILD_CFLAGS += -mno-sse
|
|
|
+
|
|
|
# Never want PIC in a 32-bit kernel, prevent breakage with GCC built
|
|
|
# with nonstandard options
|
|
|
KBUILD_CFLAGS += -fno-pic
|
|
@@ -57,8 +60,11 @@ else
|
|
|
KBUILD_AFLAGS += -m64
|
|
|
KBUILD_CFLAGS += -m64
|
|
|
|
|
|
+ # Don't autogenerate SSE instructions
|
|
|
+ KBUILD_CFLAGS += -mno-sse
|
|
|
+
|
|
|
# Use -mpreferred-stack-boundary=3 if supported.
|
|
|
- KBUILD_CFLAGS += $(call cc-option,-mno-sse -mpreferred-stack-boundary=3)
|
|
|
+ KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3)
|
|
|
|
|
|
# FIXME - should be integrated in Makefile.cpu (Makefile_32.cpu)
|
|
|
cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8)
|