# i386 Architecture Makefile
# arch/i386/Makefile
-# Assuming build machine is 32-bit ELF
-#CC = gcc
-#AS = nasm
-#LD = ld
-#OBJDUMP = objdump
-
MAX_CPUS := 4
-CPPFLAGS := -DMAX_CPUS=$(MAX_CPUS)
-CFLAGS := $(KERNEL_CFLAGS)
-ASFLAGS := -f elf64 -D MAX_CPUS=$(MAX_CPUS)
+CPPFLAGS := -DMAX_CPUS=$(MAX_CPUS) -D USE_MP=0
+CFLAGS := $(KERNEL_CFLAGS) -mno-sse -mno-mmx
+ASFLAGS := -f elf64 -D MAX_CPUS=$(MAX_CPUS) -D USE_MP=0
LDFLAGS := -nostdlib -nodefaultlibs
ifeq ($(ARCH),amd64)
A_OBJ = start32.ao start64.ao desctab.ao
A_OBJ += main.o lib.o proc.o mm_virt.o mm_phys.o vm8086.o
-A_OBJ += kernelpanic.o
+A_OBJ += kernelpanic.o errors.o