More SMP Work, also changed the physical allocator to allocate downwards
[tpg/acess2.git] / Kernel / arch / x86 / Makefile
index 051d126..319c8f6 100644 (file)
@@ -13,6 +13,22 @@ CPPFLAGS     =
 CFLAGS         =
 ASFLAGS                = -f elf
 
+ifeq ($(ARCH),i386)
+       ASFLAGS += -D USE_MP=0 -D USE_PAE=0
+       CPPFLAGS += -DUSE_MP=0 -DUSE_PAE=0
+else
+       ifeq ($(ARCH),i486)
+               ASFLAGS += -D USE_MP=1 -D USE_PAE=0
+               CPPFLAGS += -DUSE_MP=1 -DUSE_PAE=0
+       else
+               ifeq ($(ARCH),i586)
+                       ASFLAGS += -D USE_MP=1 -D USE_PAE=1
+                       CPPFLAGS += -DUSE_MP=1 -DUSE_PAE=1
+               endif
+       endif
+endif
+       
+
 A_OBJ  = start.ao main.o lib.o desctab.ao errors.o irq.o
 A_OBJ += mm_phys.o mm_virt.o
 A_OBJ += proc.o time.o

UCC git Repository :: git.ucc.asn.au