Skip to content

Commit

Permalink
i386: move kernel
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
KAGA-KOKO committed Oct 11, 2007
1 parent f7627e2 commit 9a163ed
Show file tree
Hide file tree
Showing 85 changed files with 26 additions and 19 deletions.
11 changes: 9 additions & 2 deletions arch/i386/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
# 20050320 Kianusch Sayah Karadji <[email protected]>
# Added support for GEODE CPU

# Fill in SRCARCH
SRCARCH := x86

archprepare:
@mkdir -p ${objtree}/arch/x86/kernel


HAS_BIARCH := $(call cc-option-yn, -m32)
ifeq ($(HAS_BIARCH),y)
AS := $(AS) --32
Expand Down Expand Up @@ -99,10 +106,10 @@ core-$(CONFIG_XEN) += arch/x86/xen/
# default subarch .h files
mflags-y += -Iinclude/asm-i386/mach-default

head-y := arch/i386/kernel/head_32.o arch/i386/kernel/init_task_32.o
head-y := arch/x86/kernel/head_32.o arch/x86/kernel/init_task_32.o

libs-y += arch/x86/lib/
core-y += arch/i386/kernel/ \
core-y += arch/x86/kernel/ \
arch/x86/mm/ \
$(mcore-y)/ \
arch/x86/crypto/
Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-i386/sys_call_table.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

#define old_mmap old_mmap_i386

#include "../../i386/kernel/syscall_table_32.S"
#include "../../x86/kernel/syscall_table_32.S"
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/i386/kernel/Makefile → arch/x86/kernel/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ifeq ($(CONFIG_X86_32),y)
include ${srctree}/arch/i386/kernel/Makefile_32
include ${srctree}/arch/x86/kernel/Makefile_32
else
include ${srctree}/arch/x86_64/kernel/Makefile_64
endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ __INITDATA

.globl vsyscall_int80_start, vsyscall_int80_end
vsyscall_int80_start:
.incbin "arch/i386/kernel/vsyscall-int80_32.so"
.incbin "arch/x86/kernel/vsyscall-int80_32.so"
vsyscall_int80_end:

.globl vsyscall_sysenter_start, vsyscall_sysenter_end
vsyscall_sysenter_start:
.incbin "arch/i386/kernel/vsyscall-sysenter_32.so"
.incbin "arch/x86/kernel/vsyscall-sysenter_32.so"
vsyscall_sysenter_end:

__FINIT
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/x86/mach-generic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for the generic architecture
#

EXTRA_CFLAGS := -Iarch/i386/kernel
EXTRA_CFLAGS := -Iarch/x86/kernel

obj-y := probe.o summit.o bigsmp.o es7000.o default.o
obj-y += ../../x86/mach-es7000/
2 changes: 1 addition & 1 deletion arch/x86/mach-voyager/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Makefile for the linux kernel.
#

EXTRA_CFLAGS := -Iarch/i386/kernel
EXTRA_CFLAGS := -Iarch/x86/kernel
obj-y := setup.o voyager_basic.o voyager_thread.o

obj-$(CONFIG_SMP) += voyager_smp.o voyager_cat.o
2 changes: 1 addition & 1 deletion arch/x86_64/ia32/vsyscall-sigreturn.S
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@ __kernel_rt_sigreturn:
.align 4
.LENDFDE3:

#include "../../i386/kernel/vsyscall-note_32.S"
#include "../../x86/kernel/vsyscall-note_32.S"

2 changes: 1 addition & 1 deletion arch/x86_64/kernel/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ifeq ($(CONFIG_X86_32),y)
include ${srctree}/arch/i386/kernel/Makefile_32
include ${srctree}/arch/x86/kernel/Makefile_32
else
include ${srctree}/arch/x86_64/kernel/Makefile_64
endif
18 changes: 9 additions & 9 deletions arch/x86_64/kernel/Makefile_64
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ obj-y += pcspeaker.o
CFLAGS_vsyscall_64.o := $(PROFILING) -g0

therm_throt-y += ../../x86/kernel/cpu/mcheck/therm_throt.o
bootflag-y += ../../i386/kernel/bootflag.o
cpuid-$(subst m,y,$(CONFIG_X86_CPUID)) += ../../i386/kernel/cpuid.o
topology-y += ../../i386/kernel/topology.o
microcode-$(subst m,y,$(CONFIG_MICROCODE)) += ../../i386/kernel/microcode.o
bootflag-y += ../../x86/kernel/bootflag.o
cpuid-$(subst m,y,$(CONFIG_X86_CPUID)) += ../../x86/kernel/cpuid.o
topology-y += ../../x86/kernel/topology.o
microcode-$(subst m,y,$(CONFIG_MICROCODE)) += ../../x86/kernel/microcode.o
intel_cacheinfo-y += ../../x86/kernel/cpu/intel_cacheinfo.o
addon_cpuid_features-y += ../../x86/kernel/cpu/addon_cpuid_features.o
quirks-y += ../../i386/kernel/quirks.o
i8237-y += ../../i386/kernel/i8237.o
msr-$(subst m,y,$(CONFIG_X86_MSR)) += ../../i386/kernel/msr.o
alternative-y += ../../i386/kernel/alternative.o
pcspeaker-y += ../../i386/kernel/pcspeaker.o
quirks-y += ../../x86/kernel/quirks.o
i8237-y += ../../x86/kernel/i8237.o
msr-$(subst m,y,$(CONFIG_X86_MSR)) += ../../x86/kernel/msr.o
alternative-y += ../../x86/kernel/alternative.o
pcspeaker-y += ../../x86/kernel/pcspeaker.o
perfctr-watchdog-y += ../../x86/kernel/cpu/perfctr-watchdog.o

0 comments on commit 9a163ed

Please sign in to comment.