x86_64: add kernel define and macro for x86 compatibility.

thus the kernel can be built with 32-bit compatibility support.

Change-Id: I5699bcb04908d5abb01da3166c3c180582b9026f
This commit is contained in:
Jérôme Duval 2018-02-25 16:18:31 +01:00
parent 27bba9c3fe
commit 891a743ac3

View File

@ -394,6 +394,12 @@ rule KernelArchitectureSetup architecture
HAIKU_BOOT_CCFLAGS += -m32 -march=pentium ;
HAIKU_BOOT_C++FLAGS += -m32 -march=pentium ;
}
if x86 in $(HAIKU_ARCHS[2-]) || x86_gcc2 in $(HAIKU_ARCHS[2-]) {
Echo "Enable kernel ia32 compatibility" ;
HAIKU_KERNEL_DEFINES += _COMPAT_MODE ;
HAIKU_KERNEL_COMPAT_MODE = 1 ;
}
}
if $(HAIKU_BOOT_PLATFORM) = efi {