summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/init/Makefile.inc1
-rw-r--r--src/arch/x86/Kconfig (renamed from src/arch/i386/Kconfig)0
-rw-r--r--src/arch/x86/Makefile.bigbootblock.inc (renamed from src/arch/i386/Makefile.bigbootblock.inc)2
-rw-r--r--src/arch/x86/Makefile.bootblock.inc (renamed from src/arch/i386/Makefile.bootblock.inc)16
-rw-r--r--src/arch/x86/Makefile.inc (renamed from src/arch/i386/Makefile.inc)26
-rw-r--r--src/arch/x86/acpi/debug.asl (renamed from src/arch/i386/acpi/debug.asl)0
-rw-r--r--src/arch/x86/acpi/globutil.asl (renamed from src/arch/i386/acpi/globutil.asl)0
-rw-r--r--src/arch/x86/acpi/statdef.asl (renamed from src/arch/i386/acpi/statdef.asl)0
-rw-r--r--src/arch/x86/boot/Makefile.inc (renamed from src/arch/i386/boot/Makefile.inc)2
-rw-r--r--src/arch/x86/boot/acpi.c (renamed from src/arch/i386/boot/acpi.c)0
-rw-r--r--src/arch/x86/boot/acpigen.c (renamed from src/arch/i386/boot/acpigen.c)0
-rw-r--r--src/arch/x86/boot/boot.c (renamed from src/arch/i386/boot/boot.c)0
-rw-r--r--src/arch/x86/boot/coreboot_table.c (renamed from src/arch/i386/boot/coreboot_table.c)0
-rw-r--r--src/arch/x86/boot/gdt.c (renamed from src/arch/i386/boot/gdt.c)0
-rw-r--r--src/arch/x86/boot/mpspec.c (renamed from src/arch/i386/boot/mpspec.c)0
-rw-r--r--src/arch/x86/boot/multiboot.c (renamed from src/arch/i386/boot/multiboot.c)0
-rw-r--r--src/arch/x86/boot/pirq_routing.c (renamed from src/arch/i386/boot/pirq_routing.c)0
-rw-r--r--src/arch/x86/boot/tables.c (renamed from src/arch/i386/boot/tables.c)0
-rw-r--r--src/arch/x86/boot/wakeup.S (renamed from src/arch/i386/boot/wakeup.S)0
-rw-r--r--src/arch/x86/coreboot_ram.ld (renamed from src/arch/i386/coreboot_ram.ld)0
-rw-r--r--src/arch/x86/include/arch/acpi.h (renamed from src/arch/i386/include/arch/acpi.h)0
-rw-r--r--src/arch/x86/include/arch/acpigen.h (renamed from src/arch/i386/include/arch/acpigen.h)0
-rw-r--r--src/arch/x86/include/arch/boot/boot.h (renamed from src/arch/i386/include/arch/boot/boot.h)0
-rw-r--r--src/arch/x86/include/arch/byteorder.h (renamed from src/arch/i386/include/arch/byteorder.h)0
-rw-r--r--src/arch/x86/include/arch/coreboot_tables.h (renamed from src/arch/i386/include/arch/coreboot_tables.h)0
-rw-r--r--src/arch/x86/include/arch/cpu.h (renamed from src/arch/i386/include/arch/cpu.h)0
-rw-r--r--src/arch/x86/include/arch/hlt.h (renamed from src/arch/i386/include/arch/hlt.h)0
-rw-r--r--src/arch/x86/include/arch/interrupt.h (renamed from src/arch/i386/include/arch/interrupt.h)0
-rw-r--r--src/arch/x86/include/arch/io.h (renamed from src/arch/i386/include/arch/io.h)0
-rw-r--r--src/arch/x86/include/arch/ioapic.h (renamed from src/arch/i386/include/arch/ioapic.h)0
-rw-r--r--src/arch/x86/include/arch/llshell.h (renamed from src/arch/i386/include/arch/llshell.h)0
-rw-r--r--src/arch/x86/include/arch/mmio_conf.h (renamed from src/arch/i386/include/arch/mmio_conf.h)0
-rw-r--r--src/arch/x86/include/arch/pci_ops.h (renamed from src/arch/i386/include/arch/pci_ops.h)0
-rw-r--r--src/arch/x86/include/arch/pciconf.h (renamed from src/arch/i386/include/arch/pciconf.h)0
-rw-r--r--src/arch/x86/include/arch/pirq_routing.h (renamed from src/arch/i386/include/arch/pirq_routing.h)0
-rw-r--r--src/arch/x86/include/arch/registers.h (renamed from src/arch/i386/include/arch/registers.h)0
-rw-r--r--src/arch/x86/include/arch/rom_segs.h (renamed from src/arch/i386/include/arch/rom_segs.h)0
-rw-r--r--src/arch/x86/include/arch/romcc_io.h (renamed from src/arch/i386/include/arch/romcc_io.h)0
-rw-r--r--src/arch/x86/include/arch/smp/atomic.h (renamed from src/arch/i386/include/arch/smp/atomic.h)0
-rw-r--r--src/arch/x86/include/arch/smp/mpspec.h (renamed from src/arch/i386/include/arch/smp/mpspec.h)0
-rw-r--r--src/arch/x86/include/arch/smp/spinlock.h (renamed from src/arch/i386/include/arch/smp/spinlock.h)0
-rw-r--r--src/arch/x86/include/arch/stages.h (renamed from src/arch/i386/include/arch/stages.h)0
-rw-r--r--src/arch/x86/include/bitops.h (renamed from src/arch/i386/include/bitops.h)0
-rw-r--r--src/arch/x86/include/bootblock_common.h (renamed from src/arch/i386/include/bootblock_common.h)0
-rw-r--r--src/arch/x86/include/div64.h (renamed from src/arch/i386/include/div64.h)0
-rw-r--r--src/arch/x86/include/stddef.h (renamed from src/arch/i386/include/stddef.h)0
-rw-r--r--src/arch/x86/include/stdint.h (renamed from src/arch/i386/include/stdint.h)0
-rw-r--r--src/arch/x86/init/Makefile.inc1
-rw-r--r--src/arch/x86/init/bootblock_normal.c (renamed from src/arch/i386/init/bootblock_normal.c)0
-rw-r--r--src/arch/x86/init/bootblock_simple.c (renamed from src/arch/i386/init/bootblock_simple.c)0
-rw-r--r--src/arch/x86/init/crt0_romcc_epilogue.inc (renamed from src/arch/i386/init/crt0_romcc_epilogue.inc)0
-rw-r--r--src/arch/x86/init/entry.S (renamed from src/arch/i386/init/entry.S)0
-rw-r--r--src/arch/x86/init/ldscript.ld (renamed from src/arch/i386/init/ldscript.ld)0
-rw-r--r--src/arch/x86/init/ldscript_apc.lb (renamed from src/arch/i386/init/ldscript_apc.lb)0
-rw-r--r--src/arch/x86/init/ldscript_failover.lb (renamed from src/arch/i386/init/ldscript_failover.lb)0
-rw-r--r--src/arch/x86/init/ldscript_fallback_cbfs.lb (renamed from src/arch/i386/init/ldscript_fallback_cbfs.lb)0
-rw-r--r--src/arch/x86/init/prologue.inc (renamed from src/arch/i386/init/prologue.inc)0
-rw-r--r--src/arch/x86/lib/Makefile.inc (renamed from src/arch/i386/lib/Makefile.inc)2
-rw-r--r--src/arch/x86/lib/c_start.S (renamed from src/arch/i386/lib/c_start.S)0
-rw-r--r--src/arch/x86/lib/cbfs_and_run.c (renamed from src/arch/i386/lib/cbfs_and_run.c)0
-rw-r--r--src/arch/x86/lib/cpu.c (renamed from src/arch/i386/lib/cpu.c)0
-rw-r--r--src/arch/x86/lib/exception.c (renamed from src/arch/i386/lib/exception.c)0
-rw-r--r--src/arch/x86/lib/id.inc (renamed from src/arch/i386/lib/id.inc)0
-rw-r--r--src/arch/x86/lib/id.lds (renamed from src/arch/i386/lib/id.lds)0
-rw-r--r--src/arch/x86/lib/ioapic.c (renamed from src/arch/i386/lib/ioapic.c)0
-rw-r--r--src/arch/x86/lib/pci_ops_auto.c (renamed from src/arch/i386/lib/pci_ops_auto.c)0
-rw-r--r--src/arch/x86/lib/pci_ops_conf1.c (renamed from src/arch/i386/lib/pci_ops_conf1.c)0
-rw-r--r--src/arch/x86/lib/pci_ops_conf2.c (renamed from src/arch/i386/lib/pci_ops_conf2.c)0
-rw-r--r--src/arch/x86/lib/pci_ops_mmconf.c (renamed from src/arch/i386/lib/pci_ops_mmconf.c)0
-rw-r--r--src/arch/x86/lib/printk_init.c (renamed from src/arch/i386/lib/printk_init.c)0
-rw-r--r--src/arch/x86/lib/stages.c (renamed from src/arch/i386/lib/stages.c)0
-rw-r--r--src/arch/x86/lib/walkcbfs.S (renamed from src/arch/i386/lib/walkcbfs.S)0
-rw-r--r--src/arch/x86/llshell/console.inc (renamed from src/arch/i386/llshell/console.inc)0
-rw-r--r--src/arch/x86/llshell/llshell.inc (renamed from src/arch/i386/llshell/llshell.inc)0
-rw-r--r--src/arch/x86/llshell/pci.inc (renamed from src/arch/i386/llshell/pci.inc)0
-rw-r--r--src/arch/x86/llshell/ramtest.inc (renamed from src/arch/i386/llshell/ramtest.inc)0
-rw-r--r--src/arch/x86/llshell/readme.coreboot (renamed from src/arch/i386/llshell/readme.coreboot)0
77 files changed, 25 insertions, 25 deletions
diff --git a/src/arch/i386/init/Makefile.inc b/src/arch/i386/init/Makefile.inc
deleted file mode 100644
index 98077e88f1..0000000000
--- a/src/arch/i386/init/Makefile.inc
+++ /dev/null
@@ -1 +0,0 @@
-# If you add something to this file, enable it in src/arch/i386/Makefile.inc first.
diff --git a/src/arch/i386/Kconfig b/src/arch/x86/Kconfig
index ef86d99119..ef86d99119 100644
--- a/src/arch/i386/Kconfig
+++ b/src/arch/x86/Kconfig
diff --git a/src/arch/i386/Makefile.bigbootblock.inc b/src/arch/x86/Makefile.bigbootblock.inc
index ee988c7e84..a60681670b 100644
--- a/src/arch/i386/Makefile.bigbootblock.inc
+++ b/src/arch/x86/Makefile.bigbootblock.inc
@@ -26,7 +26,7 @@ $(obj)/mainboard/$(MAINBOARDDIR)/crt0.romstage.o: $(obj)/mainboard/$(MAINBOARDDI
$(obj)/mainboard/$(MAINBOARDDIR)/crt0.s: $(obj)/crt0.S
@printf " CC $(subst $(obj)/,,$(@))\n"
- $(CC) -MMD -x assembler-with-cpp -DASSEMBLY -E -I$(src)/include -I$(src)/arch/i386/include -I$(obj) -include $(obj)/config.h -I. -I$(src) $< -o $@
+ $(CC) -MMD -x assembler-with-cpp -DASSEMBLY -E -I$(src)/include -I$(src)/arch/x86/include -I$(obj) -include $(obj)/config.h -I. -I$(src) $< -o $@
$(obj)/coreboot: $$(romstage-objs) $(obj)/ldscript.ld
@printf " LINK $(subst $(obj)/,,$(@))\n"
diff --git a/src/arch/i386/Makefile.bootblock.inc b/src/arch/x86/Makefile.bootblock.inc
index 6d975accb8..f522fc2150 100644
--- a/src/arch/i386/Makefile.bootblock.inc
+++ b/src/arch/x86/Makefile.bootblock.inc
@@ -23,24 +23,24 @@ $(obj)/coreboot.bootblock: $(obj)/bootblock.elf
@printf " OBJCOPY $(subst $(obj)/,,$(@))\n"
$(OBJCOPY) -O binary $< $@
-bootblock_lds = $(src)/arch/i386/init/ldscript_failover.lb
+bootblock_lds = $(src)/arch/x86/init/ldscript_failover.lb
bootblock_lds += $(src)/cpu/x86/16bit/entry16.lds
bootblock_lds += $(src)/cpu/x86/16bit/reset16.lds
-bootblock_lds += $(src)/arch/i386/lib/id.lds
+bootblock_lds += $(src)/arch/x86/lib/id.lds
bootblock_lds += $(chipset_bootblock_lds)
-bootblock_inc = $(src)/arch/i386/init/prologue.inc
+bootblock_inc = $(src)/arch/x86/init/prologue.inc
bootblock_inc += $(src)/cpu/x86/16bit/entry16.inc
bootblock_inc += $(src)/cpu/x86/16bit/reset16.inc
bootblock_inc += $(src)/cpu/x86/32bit/entry32.inc
-bootblock_inc += $(src)/arch/i386/lib/id.inc
+bootblock_inc += $(src)/arch/x86/lib/id.inc
bootblock_inc += $(chipset_bootblock_inc)
ifeq ($(CONFIG_SSE),y)
bootblock_inc += $(src)/cpu/x86/sse_enable.inc
endif
bootblock_inc += $(obj)/mainboard/$(MAINBOARDDIR)/bootblock.inc
-bootblock_inc += $(src)/arch/i386/lib/walkcbfs.S
+bootblock_inc += $(src)/arch/x86/lib/walkcbfs.S
bootblock_romccflags := -mcpu=i386 -O2 -D__PRE_RAM__
ifeq ($(CONFIG_SSE),y)
@@ -63,9 +63,9 @@ $(obj)/mainboard/$(MAINBOARDDIR)/bootblock.o: $(obj)/mainboard/$(MAINBOARDDIR)/b
$(obj)/mainboard/$(MAINBOARDDIR)/bootblock.s: $(obj)/bootblock/bootblock.S
@printf " CC $(subst $(obj)/,,$(@))\n"
- $(CC) -MMD -DASSEMBLY -E -I$(src)/include -I$(src)/arch/i386/include -I$(obj) -I$(obj)/bootblock -include $(obj)/config.h -I. -I$(src) $< -o $@
+ $(CC) -MMD -DASSEMBLY -E -I$(src)/include -I$(src)/arch/x86/include -I$(obj) -I$(obj)/bootblock -include $(obj)/config.h -I. -I$(src) $< -o $@
-$(obj)/mainboard/$(MAINBOARDDIR)/bootblock.inc: $(src)/arch/i386/init/$(subst ",,$(CONFIG_BOOTBLOCK_SOURCE)) $(objutil)/romcc/romcc
+$(obj)/mainboard/$(MAINBOARDDIR)/bootblock.inc: $(src)/arch/x86/init/$(subst ",,$(CONFIG_BOOTBLOCK_SOURCE)) $(objutil)/romcc/romcc
@printf " ROMCC $(subst $(obj)/,,$(@))\n"
$(CC) -MM -MT$(obj)/mainboard/$(MAINBOARDDIR)/bootblock.inc \
$< > $(obj)/mainboard/$(MAINBOARDDIR)/bootblock.inc.d
@@ -113,5 +113,5 @@ $(obj)/mainboard/$(MAINBOARDDIR)/crt0.romstage.o: $(obj)/mainboard/$(MAINBOARDDI
$(obj)/mainboard/$(MAINBOARDDIR)/crt0.s: $(obj)/romstage/crt0.S
@printf " CC $(subst $(obj)/,,$(@))\n"
- $(CC) -MMD -x assembler-with-cpp -DASSEMBLY -E -I$(src)/include -I$(src)/arch/i386/include -I$(obj) -I$(obj)/romstage -include $(obj)/config.h -I. -I$(src) $< -o $@
+ $(CC) -MMD -x assembler-with-cpp -DASSEMBLY -E -I$(src)/include -I$(src)/arch/x86/include -I$(obj) -I$(obj)/romstage -include $(obj)/config.h -I. -I$(src) $< -o $@
diff --git a/src/arch/i386/Makefile.inc b/src/arch/x86/Makefile.inc
index c0bc852dc0..ea6e3ecb14 100644
--- a/src/arch/i386/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -107,17 +107,17 @@ $(objutil)/options/build_opt_tbl: $(top)/util/options/build_opt_tbl.c $(top)/src
#######################################################################
# Build the coreboot_ram (stage 2)
-$(obj)/coreboot_ram: $(obj)/coreboot_ram.o $(src)/arch/i386/coreboot_ram.ld #ldoptions
+$(obj)/coreboot_ram: $(obj)/coreboot_ram.o $(src)/arch/x86/coreboot_ram.ld #ldoptions
@printf " CC $(subst $(obj)/,,$(@))\n"
- $(CC) -nostdlib -nostartfiles -static -o $@ -L$(obj) -T $(src)/arch/i386/coreboot_ram.ld $(obj)/coreboot_ram.o
+ $(CC) -nostdlib -nostartfiles -static -o $@ -L$(obj) -T $(src)/arch/x86/coreboot_ram.ld $(obj)/coreboot_ram.o
$(NM) -n $(obj)/coreboot_ram | sort > $(obj)/coreboot_ram.map
$(OBJCOPY) --only-keep-debug $@ $(obj)/coreboot_ram.debug
$(OBJCOPY) --strip-debug $@
$(OBJCOPY) --add-gnu-debuglink=$(obj)/coreboot_ram.debug $@
-$(obj)/coreboot_ram.o: $(obj)/arch/i386/lib/c_start.ramstage.o $$(driver-objs) $(obj)/coreboot.a $(LIBGCC_FILE_NAME)
+$(obj)/coreboot_ram.o: $(obj)/arch/x86/lib/c_start.ramstage.o $$(driver-objs) $(obj)/coreboot.a $(LIBGCC_FILE_NAME)
@printf " CC $(subst $(obj)/,,$(@))\n"
- $(CC) -nostdlib -r -o $@ $(obj)/arch/i386/lib/c_start.ramstage.o $(driver-objs) -Wl,--wrap,__divdi3 -Wl,--wrap,__udivdi3 -Wl,--wrap,__moddi3 -Wl,--wrap,__umoddi3 -Wl,--start-group $(obj)/coreboot.a $(LIBGCC_FILE_NAME) -Wl,--end-group
+ $(CC) -nostdlib -r -o $@ $(obj)/arch/x86/lib/c_start.ramstage.o $(driver-objs) -Wl,--wrap,__divdi3 -Wl,--wrap,__udivdi3 -Wl,--wrap,__moddi3 -Wl,--wrap,__umoddi3 -Wl,--start-group $(obj)/coreboot.a $(LIBGCC_FILE_NAME) -Wl,--end-group
$(obj)/coreboot.a: $$(ramstage-objs)
@printf " AR $(subst $(obj)/,,$(@))\n"
@@ -131,7 +131,7 @@ ifeq ($(CONFIG_AP_CODE_IN_CAR),y)
$(obj)/coreboot_ap: $(obj)/mainboard/$(MAINBOARDDIR)/ap_romstage.o
@printf " CC $(subst $(obj)/,,$(@))\n"
- $(CC) -nostdlib -nostartfiles -static -o $@ -L$(obj) -T $(src)/arch/i386/init/ldscript_apc.lb $^
+ $(CC) -nostdlib -nostartfiles -static -o $@ -L$(obj) -T $(src)/arch/x86/init/ldscript_apc.lb $^
$(OBJCOPY) --only-keep-debug $@ $(obj)/coreboot_ap.debug
$(OBJCOPY) --strip-debug $@
$(OBJCOPY) --add-gnu-debuglink=$(obj)/coreboot_ap.debug $@
@@ -143,9 +143,9 @@ endif
#######################################################################
# done
-crt0s = $(src)/arch/i386/init/prologue.inc
+crt0s = $(src)/arch/x86/init/prologue.inc
ldscripts =
-ldscripts += $(src)/arch/i386/init/ldscript_fallback_cbfs.lb
+ldscripts += $(src)/arch/x86/init/ldscript_fallback_cbfs.lb
ifeq ($(CONFIG_BIG_BOOTBLOCK),y)
crt0s += $(src)/cpu/x86/16bit/entry16.inc
ldscripts += $(src)/cpu/x86/16bit/entry16.lds
@@ -155,8 +155,8 @@ ldscripts += $(src)/cpu/x86/32bit/entry32.lds
ifeq ($(CONFIG_BIG_BOOTBLOCK),y)
crt0s += $(src)/cpu/x86/16bit/reset16.inc
ldscripts += $(src)/cpu/x86/16bit/reset16.lds
-crt0s += $(src)/arch/i386/lib/id.inc
-ldscripts += $(src)/arch/i386/lib/id.lds
+crt0s += $(src)/arch/x86/lib/id.inc
+ldscripts += $(src)/arch/x86/lib/id.lds
endif
crt0s += $(src)/cpu/x86/fpu_enable.inc
@@ -174,7 +174,7 @@ crt0s += $(src)/cpu/intel/car/cache_as_ram.inc
endif
ifeq ($(CONFIG_LLSHELL),y)
-crt0s += $(src)/arch/i386/llshell/llshell.inc
+crt0s += $(src)/arch/x86/llshell/llshell.inc
endif
crt0s += $(obj)/mainboard/$(MAINBOARDDIR)/romstage.inc
@@ -192,7 +192,7 @@ ldscripts += $(chipset_bootblock_lds)
endif
ifeq ($(CONFIG_ROMCC),y)
-crt0s += $(src)/arch/i386/init/crt0_romcc_epilogue.inc
+crt0s += $(src)/arch/x86/init/crt0_romcc_epilogue.inc
endif
ifeq ($(CONFIG_ROMCC),y)
@@ -251,7 +251,7 @@ ramstage-srcs += src/mainboard/$(MAINBOARDDIR)/get_bus_conf.c
endif
ifeq ($(CONFIG_TINY_BOOTBLOCK),y)
-include $(src)/arch/i386/Makefile.bootblock.inc
+include $(src)/arch/x86/Makefile.bootblock.inc
else
-include $(src)/arch/i386/Makefile.bigbootblock.inc
+include $(src)/arch/x86/Makefile.bigbootblock.inc
endif
diff --git a/src/arch/i386/acpi/debug.asl b/src/arch/x86/acpi/debug.asl
index bd5c9659e5..bd5c9659e5 100644
--- a/src/arch/i386/acpi/debug.asl
+++ b/src/arch/x86/acpi/debug.asl
diff --git a/src/arch/i386/acpi/globutil.asl b/src/arch/x86/acpi/globutil.asl
index 7e7f4e1e16..7e7f4e1e16 100644
--- a/src/arch/i386/acpi/globutil.asl
+++ b/src/arch/x86/acpi/globutil.asl
diff --git a/src/arch/i386/acpi/statdef.asl b/src/arch/x86/acpi/statdef.asl
index 12a5932a12..12a5932a12 100644
--- a/src/arch/i386/acpi/statdef.asl
+++ b/src/arch/x86/acpi/statdef.asl
diff --git a/src/arch/i386/boot/Makefile.inc b/src/arch/x86/boot/Makefile.inc
index 1ae32e441c..d4a377f74b 100644
--- a/src/arch/i386/boot/Makefile.inc
+++ b/src/arch/x86/boot/Makefile.inc
@@ -9,5 +9,5 @@ ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += acpi.c
ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += acpigen.c
ramstage-$(CONFIG_HAVE_ACPI_RESUME) += wakeup.S
-$(obj)/arch/i386/boot/coreboot_table.ramstage.o : $(OPTION_TABLE_H)
+$(obj)/arch/x86/boot/coreboot_table.ramstage.o : $(OPTION_TABLE_H)
diff --git a/src/arch/i386/boot/acpi.c b/src/arch/x86/boot/acpi.c
index 957ec4559a..957ec4559a 100644
--- a/src/arch/i386/boot/acpi.c
+++ b/src/arch/x86/boot/acpi.c
diff --git a/src/arch/i386/boot/acpigen.c b/src/arch/x86/boot/acpigen.c
index e8cd724e23..e8cd724e23 100644
--- a/src/arch/i386/boot/acpigen.c
+++ b/src/arch/x86/boot/acpigen.c
diff --git a/src/arch/i386/boot/boot.c b/src/arch/x86/boot/boot.c
index d9cb02e776..d9cb02e776 100644
--- a/src/arch/i386/boot/boot.c
+++ b/src/arch/x86/boot/boot.c
diff --git a/src/arch/i386/boot/coreboot_table.c b/src/arch/x86/boot/coreboot_table.c
index 484340c96a..484340c96a 100644
--- a/src/arch/i386/boot/coreboot_table.c
+++ b/src/arch/x86/boot/coreboot_table.c
diff --git a/src/arch/i386/boot/gdt.c b/src/arch/x86/boot/gdt.c
index b425ade59d..b425ade59d 100644
--- a/src/arch/i386/boot/gdt.c
+++ b/src/arch/x86/boot/gdt.c
diff --git a/src/arch/i386/boot/mpspec.c b/src/arch/x86/boot/mpspec.c
index 70bc5401fd..70bc5401fd 100644
--- a/src/arch/i386/boot/mpspec.c
+++ b/src/arch/x86/boot/mpspec.c
diff --git a/src/arch/i386/boot/multiboot.c b/src/arch/x86/boot/multiboot.c
index 4059f2736b..4059f2736b 100644
--- a/src/arch/i386/boot/multiboot.c
+++ b/src/arch/x86/boot/multiboot.c
diff --git a/src/arch/i386/boot/pirq_routing.c b/src/arch/x86/boot/pirq_routing.c
index bb8a7b605a..bb8a7b605a 100644
--- a/src/arch/i386/boot/pirq_routing.c
+++ b/src/arch/x86/boot/pirq_routing.c
diff --git a/src/arch/i386/boot/tables.c b/src/arch/x86/boot/tables.c
index d816e76750..d816e76750 100644
--- a/src/arch/i386/boot/tables.c
+++ b/src/arch/x86/boot/tables.c
diff --git a/src/arch/i386/boot/wakeup.S b/src/arch/x86/boot/wakeup.S
index a1df4d5597..a1df4d5597 100644
--- a/src/arch/i386/boot/wakeup.S
+++ b/src/arch/x86/boot/wakeup.S
diff --git a/src/arch/i386/coreboot_ram.ld b/src/arch/x86/coreboot_ram.ld
index 57ddd03c0d..57ddd03c0d 100644
--- a/src/arch/i386/coreboot_ram.ld
+++ b/src/arch/x86/coreboot_ram.ld
diff --git a/src/arch/i386/include/arch/acpi.h b/src/arch/x86/include/arch/acpi.h
index 030745d5ab..030745d5ab 100644
--- a/src/arch/i386/include/arch/acpi.h
+++ b/src/arch/x86/include/arch/acpi.h
diff --git a/src/arch/i386/include/arch/acpigen.h b/src/arch/x86/include/arch/acpigen.h
index 6f13a7ae1f..6f13a7ae1f 100644
--- a/src/arch/i386/include/arch/acpigen.h
+++ b/src/arch/x86/include/arch/acpigen.h
diff --git a/src/arch/i386/include/arch/boot/boot.h b/src/arch/x86/include/arch/boot/boot.h
index 3ff51c3082..3ff51c3082 100644
--- a/src/arch/i386/include/arch/boot/boot.h
+++ b/src/arch/x86/include/arch/boot/boot.h
diff --git a/src/arch/i386/include/arch/byteorder.h b/src/arch/x86/include/arch/byteorder.h
index ab344e6394..ab344e6394 100644
--- a/src/arch/i386/include/arch/byteorder.h
+++ b/src/arch/x86/include/arch/byteorder.h
diff --git a/src/arch/i386/include/arch/coreboot_tables.h b/src/arch/x86/include/arch/coreboot_tables.h
index 3c9bf98f22..3c9bf98f22 100644
--- a/src/arch/i386/include/arch/coreboot_tables.h
+++ b/src/arch/x86/include/arch/coreboot_tables.h
diff --git a/src/arch/i386/include/arch/cpu.h b/src/arch/x86/include/arch/cpu.h
index 4d7be86223..4d7be86223 100644
--- a/src/arch/i386/include/arch/cpu.h
+++ b/src/arch/x86/include/arch/cpu.h
diff --git a/src/arch/i386/include/arch/hlt.h b/src/arch/x86/include/arch/hlt.h
index ddfe169954..ddfe169954 100644
--- a/src/arch/i386/include/arch/hlt.h
+++ b/src/arch/x86/include/arch/hlt.h
diff --git a/src/arch/i386/include/arch/interrupt.h b/src/arch/x86/include/arch/interrupt.h
index 2d2330b739..2d2330b739 100644
--- a/src/arch/i386/include/arch/interrupt.h
+++ b/src/arch/x86/include/arch/interrupt.h
diff --git a/src/arch/i386/include/arch/io.h b/src/arch/x86/include/arch/io.h
index aad84088d6..aad84088d6 100644
--- a/src/arch/i386/include/arch/io.h
+++ b/src/arch/x86/include/arch/io.h
diff --git a/src/arch/i386/include/arch/ioapic.h b/src/arch/x86/include/arch/ioapic.h
index 623f617253..623f617253 100644
--- a/src/arch/i386/include/arch/ioapic.h
+++ b/src/arch/x86/include/arch/ioapic.h
diff --git a/src/arch/i386/include/arch/llshell.h b/src/arch/x86/include/arch/llshell.h
index 556df7d046..556df7d046 100644
--- a/src/arch/i386/include/arch/llshell.h
+++ b/src/arch/x86/include/arch/llshell.h
diff --git a/src/arch/i386/include/arch/mmio_conf.h b/src/arch/x86/include/arch/mmio_conf.h
index 08962f02fa..08962f02fa 100644
--- a/src/arch/i386/include/arch/mmio_conf.h
+++ b/src/arch/x86/include/arch/mmio_conf.h
diff --git a/src/arch/i386/include/arch/pci_ops.h b/src/arch/x86/include/arch/pci_ops.h
index 9c4e029b24..9c4e029b24 100644
--- a/src/arch/i386/include/arch/pci_ops.h
+++ b/src/arch/x86/include/arch/pci_ops.h
diff --git a/src/arch/i386/include/arch/pciconf.h b/src/arch/x86/include/arch/pciconf.h
index a35693519e..a35693519e 100644
--- a/src/arch/i386/include/arch/pciconf.h
+++ b/src/arch/x86/include/arch/pciconf.h
diff --git a/src/arch/i386/include/arch/pirq_routing.h b/src/arch/x86/include/arch/pirq_routing.h
index 0b65eac29b..0b65eac29b 100644
--- a/src/arch/i386/include/arch/pirq_routing.h
+++ b/src/arch/x86/include/arch/pirq_routing.h
diff --git a/src/arch/i386/include/arch/registers.h b/src/arch/x86/include/arch/registers.h
index bc1b681339..bc1b681339 100644
--- a/src/arch/i386/include/arch/registers.h
+++ b/src/arch/x86/include/arch/registers.h
diff --git a/src/arch/i386/include/arch/rom_segs.h b/src/arch/x86/include/arch/rom_segs.h
index 8c00eb3b7a..8c00eb3b7a 100644
--- a/src/arch/i386/include/arch/rom_segs.h
+++ b/src/arch/x86/include/arch/rom_segs.h
diff --git a/src/arch/i386/include/arch/romcc_io.h b/src/arch/x86/include/arch/romcc_io.h
index 79ea26550e..79ea26550e 100644
--- a/src/arch/i386/include/arch/romcc_io.h
+++ b/src/arch/x86/include/arch/romcc_io.h
diff --git a/src/arch/i386/include/arch/smp/atomic.h b/src/arch/x86/include/arch/smp/atomic.h
index 18bbae27cb..18bbae27cb 100644
--- a/src/arch/i386/include/arch/smp/atomic.h
+++ b/src/arch/x86/include/arch/smp/atomic.h
diff --git a/src/arch/i386/include/arch/smp/mpspec.h b/src/arch/x86/include/arch/smp/mpspec.h
index bc09f485d8..bc09f485d8 100644
--- a/src/arch/i386/include/arch/smp/mpspec.h
+++ b/src/arch/x86/include/arch/smp/mpspec.h
diff --git a/src/arch/i386/include/arch/smp/spinlock.h b/src/arch/x86/include/arch/smp/spinlock.h
index 5c1dd94c36..5c1dd94c36 100644
--- a/src/arch/i386/include/arch/smp/spinlock.h
+++ b/src/arch/x86/include/arch/smp/spinlock.h
diff --git a/src/arch/i386/include/arch/stages.h b/src/arch/x86/include/arch/stages.h
index 00d2a93ea3..00d2a93ea3 100644
--- a/src/arch/i386/include/arch/stages.h
+++ b/src/arch/x86/include/arch/stages.h
diff --git a/src/arch/i386/include/bitops.h b/src/arch/x86/include/bitops.h
index 9206465c77..9206465c77 100644
--- a/src/arch/i386/include/bitops.h
+++ b/src/arch/x86/include/bitops.h
diff --git a/src/arch/i386/include/bootblock_common.h b/src/arch/x86/include/bootblock_common.h
index 895a185c6f..895a185c6f 100644
--- a/src/arch/i386/include/bootblock_common.h
+++ b/src/arch/x86/include/bootblock_common.h
diff --git a/src/arch/i386/include/div64.h b/src/arch/x86/include/div64.h
index 3634f6dd14..3634f6dd14 100644
--- a/src/arch/i386/include/div64.h
+++ b/src/arch/x86/include/div64.h
diff --git a/src/arch/i386/include/stddef.h b/src/arch/x86/include/stddef.h
index e4fc019c87..e4fc019c87 100644
--- a/src/arch/i386/include/stddef.h
+++ b/src/arch/x86/include/stddef.h
diff --git a/src/arch/i386/include/stdint.h b/src/arch/x86/include/stdint.h
index b393cc10e0..b393cc10e0 100644
--- a/src/arch/i386/include/stdint.h
+++ b/src/arch/x86/include/stdint.h
diff --git a/src/arch/x86/init/Makefile.inc b/src/arch/x86/init/Makefile.inc
new file mode 100644
index 0000000000..263c58e891
--- /dev/null
+++ b/src/arch/x86/init/Makefile.inc
@@ -0,0 +1 @@
+# If you add something to this file, enable it in src/arch/x86/Makefile.inc first.
diff --git a/src/arch/i386/init/bootblock_normal.c b/src/arch/x86/init/bootblock_normal.c
index 08651c32bb..08651c32bb 100644
--- a/src/arch/i386/init/bootblock_normal.c
+++ b/src/arch/x86/init/bootblock_normal.c
diff --git a/src/arch/i386/init/bootblock_simple.c b/src/arch/x86/init/bootblock_simple.c
index e8994ee092..e8994ee092 100644
--- a/src/arch/i386/init/bootblock_simple.c
+++ b/src/arch/x86/init/bootblock_simple.c
diff --git a/src/arch/i386/init/crt0_romcc_epilogue.inc b/src/arch/x86/init/crt0_romcc_epilogue.inc
index 3bd1b36992..3bd1b36992 100644
--- a/src/arch/i386/init/crt0_romcc_epilogue.inc
+++ b/src/arch/x86/init/crt0_romcc_epilogue.inc
diff --git a/src/arch/i386/init/entry.S b/src/arch/x86/init/entry.S
index af29296403..af29296403 100644
--- a/src/arch/i386/init/entry.S
+++ b/src/arch/x86/init/entry.S
diff --git a/src/arch/i386/init/ldscript.ld b/src/arch/x86/init/ldscript.ld
index 149f048638..149f048638 100644
--- a/src/arch/i386/init/ldscript.ld
+++ b/src/arch/x86/init/ldscript.ld
diff --git a/src/arch/i386/init/ldscript_apc.lb b/src/arch/x86/init/ldscript_apc.lb
index 789a168e0e..789a168e0e 100644
--- a/src/arch/i386/init/ldscript_apc.lb
+++ b/src/arch/x86/init/ldscript_apc.lb
diff --git a/src/arch/i386/init/ldscript_failover.lb b/src/arch/x86/init/ldscript_failover.lb
index 7e48dc1a25..7e48dc1a25 100644
--- a/src/arch/i386/init/ldscript_failover.lb
+++ b/src/arch/x86/init/ldscript_failover.lb
diff --git a/src/arch/i386/init/ldscript_fallback_cbfs.lb b/src/arch/x86/init/ldscript_fallback_cbfs.lb
index 480fd32d5d..480fd32d5d 100644
--- a/src/arch/i386/init/ldscript_fallback_cbfs.lb
+++ b/src/arch/x86/init/ldscript_fallback_cbfs.lb
diff --git a/src/arch/i386/init/prologue.inc b/src/arch/x86/init/prologue.inc
index 8947f20de3..8947f20de3 100644
--- a/src/arch/i386/init/prologue.inc
+++ b/src/arch/x86/init/prologue.inc
diff --git a/src/arch/i386/lib/Makefile.inc b/src/arch/x86/lib/Makefile.inc
index 7660d4c336..43ac4693f7 100644
--- a/src/arch/i386/lib/Makefile.inc
+++ b/src/arch/x86/lib/Makefile.inc
@@ -10,4 +10,4 @@ ramstage-$(CONFIG_IOAPIC) += ioapic.c
romstage-y += printk_init.c
romstage-y += cbfs_and_run.c
-$(obj)/arch/i386/lib/console.ramstage.o :: $(obj)/build.h
+$(obj)/arch/x86/lib/console.ramstage.o :: $(obj)/build.h
diff --git a/src/arch/i386/lib/c_start.S b/src/arch/x86/lib/c_start.S
index 94ce4a70c3..94ce4a70c3 100644
--- a/src/arch/i386/lib/c_start.S
+++ b/src/arch/x86/lib/c_start.S
diff --git a/src/arch/i386/lib/cbfs_and_run.c b/src/arch/x86/lib/cbfs_and_run.c
index 5e3d8fe922..5e3d8fe922 100644
--- a/src/arch/i386/lib/cbfs_and_run.c
+++ b/src/arch/x86/lib/cbfs_and_run.c
diff --git a/src/arch/i386/lib/cpu.c b/src/arch/x86/lib/cpu.c
index 3732ae296e..3732ae296e 100644
--- a/src/arch/i386/lib/cpu.c
+++ b/src/arch/x86/lib/cpu.c
diff --git a/src/arch/i386/lib/exception.c b/src/arch/x86/lib/exception.c
index 20917b6f40..20917b6f40 100644
--- a/src/arch/i386/lib/exception.c
+++ b/src/arch/x86/lib/exception.c
diff --git a/src/arch/i386/lib/id.inc b/src/arch/x86/lib/id.inc
index 443dbad38a..443dbad38a 100644
--- a/src/arch/i386/lib/id.inc
+++ b/src/arch/x86/lib/id.inc
diff --git a/src/arch/i386/lib/id.lds b/src/arch/x86/lib/id.lds
index d646270daf..d646270daf 100644
--- a/src/arch/i386/lib/id.lds
+++ b/src/arch/x86/lib/id.lds
diff --git a/src/arch/i386/lib/ioapic.c b/src/arch/x86/lib/ioapic.c
index e39fe8fd0a..e39fe8fd0a 100644
--- a/src/arch/i386/lib/ioapic.c
+++ b/src/arch/x86/lib/ioapic.c
diff --git a/src/arch/i386/lib/pci_ops_auto.c b/src/arch/x86/lib/pci_ops_auto.c
index 92eedd30fb..92eedd30fb 100644
--- a/src/arch/i386/lib/pci_ops_auto.c
+++ b/src/arch/x86/lib/pci_ops_auto.c
diff --git a/src/arch/i386/lib/pci_ops_conf1.c b/src/arch/x86/lib/pci_ops_conf1.c
index 36db54c21b..36db54c21b 100644
--- a/src/arch/i386/lib/pci_ops_conf1.c
+++ b/src/arch/x86/lib/pci_ops_conf1.c
diff --git a/src/arch/i386/lib/pci_ops_conf2.c b/src/arch/x86/lib/pci_ops_conf2.c
index 839f5b44c7..839f5b44c7 100644
--- a/src/arch/i386/lib/pci_ops_conf2.c
+++ b/src/arch/x86/lib/pci_ops_conf2.c
diff --git a/src/arch/i386/lib/pci_ops_mmconf.c b/src/arch/x86/lib/pci_ops_mmconf.c
index 7d8fb329d0..7d8fb329d0 100644
--- a/src/arch/i386/lib/pci_ops_mmconf.c
+++ b/src/arch/x86/lib/pci_ops_mmconf.c
diff --git a/src/arch/i386/lib/printk_init.c b/src/arch/x86/lib/printk_init.c
index 2f7f751832..2f7f751832 100644
--- a/src/arch/i386/lib/printk_init.c
+++ b/src/arch/x86/lib/printk_init.c
diff --git a/src/arch/i386/lib/stages.c b/src/arch/x86/lib/stages.c
index a6a232a04a..a6a232a04a 100644
--- a/src/arch/i386/lib/stages.c
+++ b/src/arch/x86/lib/stages.c
diff --git a/src/arch/i386/lib/walkcbfs.S b/src/arch/x86/lib/walkcbfs.S
index 395c46e20c..395c46e20c 100644
--- a/src/arch/i386/lib/walkcbfs.S
+++ b/src/arch/x86/lib/walkcbfs.S
diff --git a/src/arch/i386/llshell/console.inc b/src/arch/x86/llshell/console.inc
index 84f62e3448..84f62e3448 100644
--- a/src/arch/i386/llshell/console.inc
+++ b/src/arch/x86/llshell/console.inc
diff --git a/src/arch/i386/llshell/llshell.inc b/src/arch/x86/llshell/llshell.inc
index a66ac150b5..a66ac150b5 100644
--- a/src/arch/i386/llshell/llshell.inc
+++ b/src/arch/x86/llshell/llshell.inc
diff --git a/src/arch/i386/llshell/pci.inc b/src/arch/x86/llshell/pci.inc
index 7cb741008e..7cb741008e 100644
--- a/src/arch/i386/llshell/pci.inc
+++ b/src/arch/x86/llshell/pci.inc
diff --git a/src/arch/i386/llshell/ramtest.inc b/src/arch/x86/llshell/ramtest.inc
index c02cf451ec..c02cf451ec 100644
--- a/src/arch/i386/llshell/ramtest.inc
+++ b/src/arch/x86/llshell/ramtest.inc
diff --git a/src/arch/i386/llshell/readme.coreboot b/src/arch/x86/llshell/readme.coreboot
index ae7dcbecd0..ae7dcbecd0 100644
--- a/src/arch/i386/llshell/readme.coreboot
+++ b/src/arch/x86/llshell/readme.coreboot