Changed i386 build to x86
authorJohn Hodge <[email protected]>
Mon, 17 Oct 2011 02:59:06 +0000 (10:59 +0800)
committerJohn Hodge <[email protected]>
Mon, 17 Oct 2011 02:59:06 +0000 (10:59 +0800)
Kernel/arch/x86/Makefile
Kernel/arch/x86/include/arch.h
Makefile.cfg
Makefile.i386-smp.cfg [deleted symlink]
Makefile.i386.cfg [deleted file]
Makefile.x86.cfg
Usermode/Libraries/crt0.o_src/crt0.asm [deleted file]
Usermode/Libraries/crt0.o_src/crt0.x86.asm [changed from symlink to file mode: 0644]

index 00a02ac..10cd645 100644 (file)
@@ -11,9 +11,9 @@ ASFLAGS               = -f elf
 
 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
 
index 755ecdf..9a4f98d 100644 (file)
@@ -18,7 +18,7 @@
 #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
 
index 83c593b..70570c8 100644 (file)
@@ -25,7 +25,7 @@ ASSUFFIX = asm
 
 # Load Architecture settings
 ifeq ($(ARCH),)
-       ARCH := i386
+       ARCH := x86
 endif
 include $(ACESSDIR)/Makefile.$(ARCH).cfg
 ifeq ($(ARCHDIR),)
diff --git a/Makefile.i386-smp.cfg b/Makefile.i386-smp.cfg
deleted file mode 120000 (symlink)
index 5b8aab7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Makefile.i386.cfg
\ No newline at end of file
diff --git a/Makefile.i386.cfg b/Makefile.i386.cfg
deleted file mode 100644 (file)
index f72f0bb..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#
-# 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
-
index 705fe8a..7b3d8a9 100644 (file)
@@ -1,2 +1,17 @@
+#
+# 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
diff --git a/Usermode/Libraries/crt0.o_src/crt0.asm b/Usermode/Libraries/crt0.o_src/crt0.asm
deleted file mode 100644 (file)
index 531a378..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-;
-; 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
deleted file mode 120000 (symlink)
index 084206aa89d1e41d886e8029d9b8473b9f26d133..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-crt0.asm
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..531a3783ef31fe5404eaadb5452ba8c70cff2573
--- /dev/null
@@ -0,0 +1,30 @@
+;
+; 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

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