|
@@ -57,6 +57,7 @@ $(obj)/cpustr.h: $(obj)/mkcpustr FORCE
|
|
# How to compile the 16-bit code. Note we always compile for -march=i386,
|
|
# How to compile the 16-bit code. Note we always compile for -march=i386,
|
|
# that way we can complain to the user if the CPU is insufficient.
|
|
# that way we can complain to the user if the CPU is insufficient.
|
|
KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \
|
|
KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \
|
|
|
|
+ -DDISABLE_BRANCH_PROFILING \
|
|
-Wall -Wstrict-prototypes \
|
|
-Wall -Wstrict-prototypes \
|
|
-march=i386 -mregparm=3 \
|
|
-march=i386 -mregparm=3 \
|
|
-include $(srctree)/$(src)/code16gcc.h \
|
|
-include $(srctree)/$(src)/code16gcc.h \
|
|
@@ -66,7 +67,7 @@ KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \
|
|
$(call cc-option, -fno-unit-at-a-time)) \
|
|
$(call cc-option, -fno-unit-at-a-time)) \
|
|
$(call cc-option, -fno-stack-protector) \
|
|
$(call cc-option, -fno-stack-protector) \
|
|
$(call cc-option, -mpreferred-stack-boundary=2)
|
|
$(call cc-option, -mpreferred-stack-boundary=2)
|
|
-KBUILD_CFLAGS += $(call cc-option,-m32)
|
|
|
|
|
|
+KBUILD_CFLAGS += $(call cc-option, -m32)
|
|
KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
|
|
KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
|
|
|
|
|
|
$(obj)/bzImage: asflags-y := $(SVGA_MODE)
|
|
$(obj)/bzImage: asflags-y := $(SVGA_MODE)
|