USE_MP=0
-ifeq ($(ARCH),i386)
+ifeq ($(ARCH),x86)
USE_MP=0
-else ifeq ($(ARCH),i386-smp)
+else ifeq ($(ARCH),x86-smp)
USE_MP=1
endif
#define LOCK_DISABLE_INTS 1
// - Processor/Machine Specific Features
-#if ARCH != i386 && ARCH != i486 && ARCH != i586
+#if ARCH != x86 && ARCH != x86_smp
# error "Unknown architecture '" #ARCH "'"
#endif
# Load Architecture settings
ifeq ($(ARCH),)
- ARCH := i386
+ ARCH := x86
endif
include $(ACESSDIR)/Makefile.$(ARCH).cfg
ifeq ($(ARCHDIR),)
+++ /dev/null
-Makefile.i386.cfg
\ No newline at end of file
+++ /dev/null
-#
-# Acess2 Build Configuration
-#
-
-CC = i586-elf-gcc
-LD = i586-elf-ld
-AS = nasm
-OBJDUMP = i586-elf-objdump
-RM = @rm -f
-STRIP = strip
-
-ARCHDIR = x86
-
-DYNMOD_FLAGS := -mcmodel=small -fPIC
-
+#
+# Acess2 Build Configuration
+#
+
+CC = i586-elf-gcc
+LD = i586-elf-ld
+AS = nasm
+OBJDUMP = i586-elf-objdump
+RM = @rm -f
+STRIP = strip
+
+ARCHDIR = x86
+
+DYNMOD_FLAGS := -mcmodel=small -fPIC
+
ASFLAGS = -felf
+++ /dev/null
-;
-; Acess2
-; C Runtime 0
-; - crt0.asm
-
-[BITS 32]
-[section .text]
-
-
-[global _start]
-[global start]
-[extern main]
-[extern _exit]
-_start:
-start:
- call main
- push eax
-
- mov eax, [_crt0_exit_handler]
- test eax, eax
- jz .exit
- call eax
-
-.exit:
- call _exit
- jmp $ ; This should never be reached
-[section .bss]
-[global _crt0_exit_handler]
-_crt0_exit_handler:
- resd 1
+++ /dev/null
-crt0.asm
\ No newline at end of file
--- /dev/null
+;
+; Acess2
+; C Runtime 0
+; - crt0.asm
+
+[BITS 32]
+[section .text]
+
+
+[global _start]
+[global start]
+[extern main]
+[extern _exit]
+_start:
+start:
+ call main
+ push eax
+
+ mov eax, [_crt0_exit_handler]
+ test eax, eax
+ jz .exit
+ call eax
+
+.exit:
+ call _exit
+ jmp $ ; This should never be reached
+[section .bss]
+[global _crt0_exit_handler]
+_crt0_exit_handler:
+ resd 1