浏览代码

i386/x86_64: move headers to include/asm-x86

Move the headers to include/asm-x86 and fixup the
header install make rules

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Thomas Gleixner 17 年之前
父节点
当前提交
96a388de5d
共有 100 个文件被更改,包括 275 次插入44 次删除
  1. 1 1
      Documentation/lguest/lguest.c
  2. 1 1
      Kbuild
  3. 9 8
      Makefile
  4. 8 8
      arch/i386/Makefile
  5. 1 1
      arch/ia64/ia32/audit.c
  6. 2 2
      arch/um/sys-x86_64/syscall_table.c
  7. 1 1
      arch/x86/ia32/audit.c
  8. 1 1
      arch/x86/ia32/ipc32.c
  9. 1 1
      arch/x86/kernel/cpu/mtrr/state.c
  10. 2 2
      arch/x86/kernel/syscall_64.c
  11. 0 12
      include/asm-i386/Kbuild
  12. 0 1
      include/asm-i386/k8.h
  13. 0 1
      include/asm-i386/pci-direct.h
  14. 0 1
      include/asm-i386/stacktrace.h
  15. 1 1
      include/asm-sh/mpc1211/mc146818rtc.h
  16. 5 0
      include/asm-x86/8253pit.h
  17. 0 0
      include/asm-x86/8253pit_32.h
  18. 0 0
      include/asm-x86/8253pit_64.h
  19. 88 0
      include/asm-x86/Kbuild
  20. 13 0
      include/asm-x86/a.out.h
  21. 0 0
      include/asm-x86/a.out_32.h
  22. 0 0
      include/asm-x86/a.out_64.h
  23. 5 0
      include/asm-x86/acpi.h
  24. 0 0
      include/asm-x86/acpi_32.h
  25. 0 0
      include/asm-x86/acpi_64.h
  26. 5 0
      include/asm-x86/agp.h
  27. 0 0
      include/asm-x86/agp_32.h
  28. 0 0
      include/asm-x86/agp_64.h
  29. 5 0
      include/asm-x86/alternative-asm.i
  30. 0 0
      include/asm-x86/alternative-asm_32.i
  31. 0 0
      include/asm-x86/alternative-asm_64.i
  32. 5 0
      include/asm-x86/alternative.h
  33. 0 0
      include/asm-x86/alternative_32.h
  34. 0 0
      include/asm-x86/alternative_64.h
  35. 5 0
      include/asm-x86/apic.h
  36. 0 0
      include/asm-x86/apic_32.h
  37. 0 0
      include/asm-x86/apic_64.h
  38. 5 0
      include/asm-x86/apicdef.h
  39. 0 0
      include/asm-x86/apicdef_32.h
  40. 0 0
      include/asm-x86/apicdef_64.h
  41. 0 0
      include/asm-x86/arch_hooks.h
  42. 5 0
      include/asm-x86/atomic.h
  43. 0 0
      include/asm-x86/atomic_32.h
  44. 0 0
      include/asm-x86/atomic_64.h
  45. 13 0
      include/asm-x86/auxvec.h
  46. 0 0
      include/asm-x86/auxvec_32.h
  47. 0 0
      include/asm-x86/auxvec_64.h
  48. 5 0
      include/asm-x86/bitops.h
  49. 0 0
      include/asm-x86/bitops_32.h
  50. 0 0
      include/asm-x86/bitops_64.h
  51. 0 0
      include/asm-x86/boot.h
  52. 0 0
      include/asm-x86/bootparam.h
  53. 0 0
      include/asm-x86/bootsetup.h
  54. 5 0
      include/asm-x86/bug.h
  55. 0 0
      include/asm-x86/bug_32.h
  56. 0 0
      include/asm-x86/bug_64.h
  57. 5 0
      include/asm-x86/bugs.h
  58. 0 0
      include/asm-x86/bugs_32.h
  59. 0 0
      include/asm-x86/bugs_64.h
  60. 13 0
      include/asm-x86/byteorder.h
  61. 0 0
      include/asm-x86/byteorder_32.h
  62. 0 0
      include/asm-x86/byteorder_64.h
  63. 5 0
      include/asm-x86/cache.h
  64. 0 0
      include/asm-x86/cache_32.h
  65. 0 0
      include/asm-x86/cache_64.h
  66. 5 0
      include/asm-x86/cacheflush.h
  67. 0 0
      include/asm-x86/cacheflush_32.h
  68. 0 0
      include/asm-x86/cacheflush_64.h
  69. 0 0
      include/asm-x86/calgary.h
  70. 0 0
      include/asm-x86/calling.h
  71. 5 0
      include/asm-x86/checksum.h
  72. 0 0
      include/asm-x86/checksum_32.h
  73. 0 0
      include/asm-x86/checksum_64.h
  74. 5 0
      include/asm-x86/cmpxchg.h
  75. 0 0
      include/asm-x86/cmpxchg_32.h
  76. 0 0
      include/asm-x86/cmpxchg_64.h
  77. 0 0
      include/asm-x86/compat.h
  78. 0 0
      include/asm-x86/cpu.h
  79. 5 0
      include/asm-x86/cpufeature.h
  80. 0 0
      include/asm-x86/cpufeature_32.h
  81. 2 2
      include/asm-x86/cpufeature_64.h
  82. 5 0
      include/asm-x86/cputime.h
  83. 0 0
      include/asm-x86/cputime_32.h
  84. 0 0
      include/asm-x86/cputime_64.h
  85. 5 0
      include/asm-x86/current.h
  86. 0 0
      include/asm-x86/current_32.h
  87. 0 0
      include/asm-x86/current_64.h
  88. 13 0
      include/asm-x86/debugreg.h
  89. 0 0
      include/asm-x86/debugreg_32.h
  90. 0 0
      include/asm-x86/debugreg_64.h
  91. 5 0
      include/asm-x86/delay.h
  92. 0 0
      include/asm-x86/delay_32.h
  93. 0 0
      include/asm-x86/delay_64.h
  94. 5 0
      include/asm-x86/desc.h
  95. 0 0
      include/asm-x86/desc_32.h
  96. 0 0
      include/asm-x86/desc_64.h
  97. 0 0
      include/asm-x86/desc_defs.h
  98. 5 0
      include/asm-x86/device.h
  99. 0 0
      include/asm-x86/device_32.h
  100. 0 0
      include/asm-x86/device_64.h

+ 1 - 1
Documentation/lguest/lguest.c

@@ -46,7 +46,7 @@ typedef uint32_t u32;
 typedef uint16_t u16;
 typedef uint16_t u16;
 typedef uint8_t u8;
 typedef uint8_t u8;
 #include "../../include/linux/lguest_launcher.h"
 #include "../../include/linux/lguest_launcher.h"
-#include "../../include/asm-i386/e820.h"
+#include "../../include/asm-x86/e820_32.h"
 /*:*/
 /*:*/
 
 
 #define PAGE_PRESENT 0x7 	/* Present, RW, Execute */
 #define PAGE_PRESENT 0x7 	/* Present, RW, Execute */

+ 1 - 1
Kbuild

@@ -8,7 +8,7 @@
 # 1) Generate asm-offsets.h
 # 1) Generate asm-offsets.h
 #
 #
 
 
-offsets-file := include/asm-$(ARCH)/asm-offsets.h
+offsets-file := include/asm-$(SRCARCH)/asm-offsets.h
 
 
 always  := $(offsets-file)
 always  := $(offsets-file)
 targets := $(offsets-file)
 targets := $(offsets-file)

+ 9 - 8
Makefile

@@ -863,7 +863,7 @@ ifneq ($(KBUILD_SRC),)
 		/bin/false; \
 		/bin/false; \
 	fi;
 	fi;
 	$(Q)if [ ! -d include2 ]; then mkdir -p include2; fi;
 	$(Q)if [ ! -d include2 ]; then mkdir -p include2; fi;
-	$(Q)ln -fsn $(srctree)/include/asm-$(ARCH) include2/asm
+	$(Q)ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm
 endif
 endif
 
 
 # prepare2 creates a makefile if using a separate output directory
 # prepare2 creates a makefile if using a separate output directory
@@ -895,9 +895,9 @@ export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH)
 # before switching between archs anyway.
 # before switching between archs anyway.
 
 
 include/asm:
 include/asm:
-	@echo '  SYMLINK $@ -> include/asm-$(ARCH)'
+	@echo '  SYMLINK $@ -> include/asm-$(SRCARCH)'
 	$(Q)if [ ! -d include ]; then mkdir -p include; fi;
 	$(Q)if [ ! -d include ]; then mkdir -p include; fi;
-	@ln -fsn asm-$(ARCH) $@
+	@ln -fsn asm-$(SRCARCH) $@
 
 
 # Generate some files
 # Generate some files
 # ---------------------------------------------------------------------------
 # ---------------------------------------------------------------------------
@@ -937,7 +937,8 @@ depend dep:
 INSTALL_HDR_PATH=$(objtree)/usr
 INSTALL_HDR_PATH=$(objtree)/usr
 export INSTALL_HDR_PATH
 export INSTALL_HDR_PATH
 
 
-HDRARCHES=$(filter-out generic,$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild)))
+HDRFILTER=generic i386 x86_64
+HDRARCHES=$(filter-out $(HDRFILTER),$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild)))
 
 
 PHONY += headers_install_all
 PHONY += headers_install_all
 headers_install_all: include/linux/version.h scripts_basic FORCE
 headers_install_all: include/linux/version.h scripts_basic FORCE
@@ -948,11 +949,11 @@ headers_install_all: include/linux/version.h scripts_basic FORCE
 
 
 PHONY += headers_install
 PHONY += headers_install
 headers_install: include/linux/version.h scripts_basic FORCE
 headers_install: include/linux/version.h scripts_basic FORCE
-	@if [ ! -r $(srctree)/include/asm-$(ARCH)/Kbuild ]; then \
-	  echo '*** Error: Headers not exportable for this architecture ($(ARCH))'; \
+	@if [ ! -r $(srctree)/include/asm-$(SRCARCH)/Kbuild ]; then \
+	  echo '*** Error: Headers not exportable for this architecture ($(SRCARCH))'; \
 	  exit 1 ; fi
 	  exit 1 ; fi
 	$(Q)$(MAKE) $(build)=scripts scripts/unifdef
 	$(Q)$(MAKE) $(build)=scripts scripts/unifdef
-	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst obj=include
+	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst ARCH=$(SRCARCH) obj=include
 
 
 PHONY += headers_check_all
 PHONY += headers_check_all
 headers_check_all: headers_install_all
 headers_check_all: headers_install_all
@@ -962,7 +963,7 @@ headers_check_all: headers_install_all
 
 
 PHONY += headers_check
 PHONY += headers_check
 headers_check: headers_install
 headers_check: headers_install
-	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst obj=include HDRCHECK=1
+	$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.headersinst ARCH=$(SRCARCH) obj=include HDRCHECK=1
 
 
 # ---------------------------------------------------------------------------
 # ---------------------------------------------------------------------------
 # Modules
 # Modules

+ 8 - 8
arch/i386/Makefile

@@ -71,32 +71,32 @@ CFLAGS += $(cflags-y)
 mcore-y  := arch/x86/mach-default
 mcore-y  := arch/x86/mach-default
 
 
 # Voyager subarch support
 # Voyager subarch support
-mflags-$(CONFIG_X86_VOYAGER)	:= -Iinclude/asm-i386/mach-voyager
+mflags-$(CONFIG_X86_VOYAGER)	:= -Iinclude/asm-x86/mach-voyager
 mcore-$(CONFIG_X86_VOYAGER)	:= arch/x86/mach-voyager
 mcore-$(CONFIG_X86_VOYAGER)	:= arch/x86/mach-voyager
 
 
 # VISWS subarch support
 # VISWS subarch support
-mflags-$(CONFIG_X86_VISWS)	:= -Iinclude/asm-i386/mach-visws
+mflags-$(CONFIG_X86_VISWS)	:= -Iinclude/asm-x86/mach-visws
 mcore-$(CONFIG_X86_VISWS)	:= arch/x86/mach-visws
 mcore-$(CONFIG_X86_VISWS)	:= arch/x86/mach-visws
 
 
 # NUMAQ subarch support
 # NUMAQ subarch support
-mflags-$(CONFIG_X86_NUMAQ)	:= -Iinclude/asm-i386/mach-numaq
+mflags-$(CONFIG_X86_NUMAQ)	:= -Iinclude/asm-x86/mach-numaq
 mcore-$(CONFIG_X86_NUMAQ)	:= arch/x86/mach-default
 mcore-$(CONFIG_X86_NUMAQ)	:= arch/x86/mach-default
 
 
 # BIGSMP subarch support
 # BIGSMP subarch support
-mflags-$(CONFIG_X86_BIGSMP)	:= -Iinclude/asm-i386/mach-bigsmp
+mflags-$(CONFIG_X86_BIGSMP)	:= -Iinclude/asm-x86/mach-bigsmp
 mcore-$(CONFIG_X86_BIGSMP)	:= arch/x86/mach-default
 mcore-$(CONFIG_X86_BIGSMP)	:= arch/x86/mach-default
 
 
 #Summit subarch support
 #Summit subarch support
-mflags-$(CONFIG_X86_SUMMIT) := -Iinclude/asm-i386/mach-summit
+mflags-$(CONFIG_X86_SUMMIT) := -Iinclude/asm-x86/mach-summit
 mcore-$(CONFIG_X86_SUMMIT)  := arch/x86/mach-default
 mcore-$(CONFIG_X86_SUMMIT)  := arch/x86/mach-default
 
 
 # generic subarchitecture
 # generic subarchitecture
-mflags-$(CONFIG_X86_GENERICARCH) := -Iinclude/asm-i386/mach-generic
+mflags-$(CONFIG_X86_GENERICARCH) := -Iinclude/asm-x86/mach-generic
 mcore-$(CONFIG_X86_GENERICARCH) := arch/x86/mach-default
 mcore-$(CONFIG_X86_GENERICARCH) := arch/x86/mach-default
 core-$(CONFIG_X86_GENERICARCH) += arch/x86/mach-generic/
 core-$(CONFIG_X86_GENERICARCH) += arch/x86/mach-generic/
 
 
 # ES7000 subarch support
 # ES7000 subarch support
-mflags-$(CONFIG_X86_ES7000)	:= -Iinclude/asm-i386/mach-es7000
+mflags-$(CONFIG_X86_ES7000)	:= -Iinclude/asm-x86/mach-es7000
 mcore-$(CONFIG_X86_ES7000)	:= arch/x86/mach-default
 mcore-$(CONFIG_X86_ES7000)	:= arch/x86/mach-default
 core-$(CONFIG_X86_ES7000)	:= arch/x86/mach-es7000/
 core-$(CONFIG_X86_ES7000)	:= arch/x86/mach-es7000/
 
 
@@ -104,7 +104,7 @@ core-$(CONFIG_X86_ES7000)	:= arch/x86/mach-es7000/
 core-$(CONFIG_XEN)		+= arch/x86/xen/
 core-$(CONFIG_XEN)		+= arch/x86/xen/
 
 
 # default subarch .h files
 # default subarch .h files
-mflags-y += -Iinclude/asm-i386/mach-default
+mflags-y += -Iinclude/asm-x86/mach-default
 
 
 head-y := arch/x86/kernel/head_32.o arch/x86/kernel/init_task_32.o
 head-y := arch/x86/kernel/head_32.o arch/x86/kernel/init_task_32.o
 
 

+ 1 - 1
arch/ia64/ia32/audit.c

@@ -1,4 +1,4 @@
-#include <asm-i386/unistd.h>
+#include <asm-x86/unistd_32.h>
 
 
 unsigned ia32_dir_class[] = {
 unsigned ia32_dir_class[] = {
 #include <asm-generic/audit_dir_write.h>
 #include <asm-generic/audit_dir_write.h>

+ 2 - 2
arch/um/sys-x86_64/syscall_table.c

@@ -36,7 +36,7 @@
 
 
 #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
 #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
 #undef _ASM_X86_64_UNISTD_H_
 #undef _ASM_X86_64_UNISTD_H_
-#include <asm-x86_64/unistd.h>
+#include <asm-x86/unistd_64.h>
 
 
 #undef __SYSCALL
 #undef __SYSCALL
 #define __SYSCALL(nr, sym) [ nr ] = sym,
 #define __SYSCALL(nr, sym) [ nr ] = sym,
@@ -49,5 +49,5 @@ extern void sys_ni_syscall(void);
 sys_call_ptr_t sys_call_table[UM_NR_syscall_max+1] __cacheline_aligned = {
 sys_call_ptr_t sys_call_table[UM_NR_syscall_max+1] __cacheline_aligned = {
 	/* Smells like a like a compiler bug -- it doesn't work when the & below is removed. */
 	/* Smells like a like a compiler bug -- it doesn't work when the & below is removed. */
 	[0 ... UM_NR_syscall_max] = &sys_ni_syscall,
 	[0 ... UM_NR_syscall_max] = &sys_ni_syscall,
-#include <asm-x86_64/unistd.h>
+#include <asm-x86/unistd_64.h>
 };
 };

+ 1 - 1
arch/x86/ia32/audit.c

@@ -1,4 +1,4 @@
-#include <asm-i386/unistd.h>
+#include <asm/unistd_32.h>
 
 
 unsigned ia32_dir_class[] = {
 unsigned ia32_dir_class[] = {
 #include <asm-generic/audit_dir_write.h>
 #include <asm-generic/audit_dir_write.h>

+ 1 - 1
arch/x86/ia32/ipc32.c

@@ -9,7 +9,7 @@
 #include <linux/ipc.h>
 #include <linux/ipc.h>
 #include <linux/compat.h>
 #include <linux/compat.h>
 
 
-#include <asm-i386/ipc.h>
+#include <asm/ipc.h>
 
 
 asmlinkage long
 asmlinkage long
 sys32_ipc(u32 call, int first, int second, int third,
 sys32_ipc(u32 call, int first, int second, int third,

+ 1 - 1
arch/x86/kernel/cpu/mtrr/state.c

@@ -3,7 +3,7 @@
 #include <asm/io.h>
 #include <asm/io.h>
 #include <asm/mtrr.h>
 #include <asm/mtrr.h>
 #include <asm/msr.h>
 #include <asm/msr.h>
-#include <asm-i386/processor-cyrix.h>
+#include <asm/processor-cyrix.h>
 #include "mtrr.h"
 #include "mtrr.h"
 
 
 
 

+ 2 - 2
arch/x86/kernel/syscall_64.c

@@ -9,7 +9,7 @@
 
 
 #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ; 
 #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ; 
 #undef _ASM_X86_64_UNISTD_H_
 #undef _ASM_X86_64_UNISTD_H_
-#include <asm-x86_64/unistd.h>
+#include <asm/unistd_64.h>
 
 
 #undef __SYSCALL
 #undef __SYSCALL
 #define __SYSCALL(nr, sym) [ nr ] = sym, 
 #define __SYSCALL(nr, sym) [ nr ] = sym, 
@@ -22,5 +22,5 @@ extern void sys_ni_syscall(void);
 const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
 const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
 	/* Smells like a like a compiler bug -- it doesn't work when the & below is removed. */ 
 	/* Smells like a like a compiler bug -- it doesn't work when the & below is removed. */ 
 	[0 ... __NR_syscall_max] = &sys_ni_syscall,
 	[0 ... __NR_syscall_max] = &sys_ni_syscall,
-#include <asm-x86_64/unistd.h>
+#include <asm/unistd_64.h>
 };
 };

+ 0 - 12
include/asm-i386/Kbuild

@@ -1,12 +0,0 @@
-include include/asm-generic/Kbuild.asm
-
-header-y += boot.h
-header-y += debugreg.h
-header-y += ldt.h
-header-y += msr-index.h
-header-y += ptrace-abi.h
-header-y += ucontext.h
-
-unifdef-y += msr.h
-unifdef-y += mtrr.h
-unifdef-y += vm86.h

+ 0 - 1
include/asm-i386/k8.h

@@ -1 +0,0 @@
-#include <asm-x86_64/k8.h>

+ 0 - 1
include/asm-i386/pci-direct.h

@@ -1 +0,0 @@
-#include "asm-x86_64/pci-direct.h"

+ 0 - 1
include/asm-i386/stacktrace.h

@@ -1 +0,0 @@
-#include <asm-x86_64/stacktrace.h>

+ 1 - 1
include/asm-sh/mpc1211/mc146818rtc.h

@@ -1,6 +1,6 @@
 /*
 /*
  * MPC1211 uses PC/AT style RTC definitions.
  * MPC1211 uses PC/AT style RTC definitions.
  */
  */
-#include <asm-i386/mc146818rtc.h>
+#include <asm-x86/mc146818rtc_32.h>
 
 
 
 

+ 5 - 0
include/asm-x86/8253pit.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "8253pit_32.h"
+#else
+# include "8253pit_64.h"
+#endif

+ 0 - 0
include/asm-i386/8253pit.h → include/asm-x86/8253pit_32.h


+ 0 - 0
include/asm-x86_64/8253pit.h → include/asm-x86/8253pit_64.h


+ 88 - 0
include/asm-x86/Kbuild

@@ -0,0 +1,88 @@
+include include/asm-generic/Kbuild.asm
+
+header-y += boot.h
+header-y += bootsetup.h
+header-y += debugreg_32.h
+header-y += debugreg_64.h
+header-y += debugreg.h
+header-y += ldt_32.h
+header-y += ldt_64.h
+header-y += ldt.h
+header-y += msr-index.h
+header-y += prctl.h
+header-y += ptrace-abi_32.h
+header-y += ptrace-abi_64.h
+header-y += ptrace-abi.h
+header-y += sigcontext32.h
+header-y += ucontext_32.h
+header-y += ucontext_64.h
+header-y += ucontext.h
+header-y += vsyscall32.h
+
+unifdef-y += a.out_32.h
+unifdef-y += a.out_64.h
+unifdef-y += auxvec_32.h
+unifdef-y += auxvec_64.h
+unifdef-y += byteorder_32.h
+unifdef-y += byteorder_64.h
+unifdef-y += elf_32.h
+unifdef-y += elf_64.h
+unifdef-y += errno_32.h
+unifdef-y += errno_64.h
+unifdef-y += ioctls_32.h
+unifdef-y += ioctls_64.h
+unifdef-y += ipcbuf_32.h
+unifdef-y += ipcbuf_64.h
+unifdef-y += mce.h
+unifdef-y += mman_32.h
+unifdef-y += mman_64.h
+unifdef-y += msgbuf_32.h
+unifdef-y += msgbuf_64.h
+unifdef-y += msr_32.h
+unifdef-y += msr_64.h
+unifdef-y += msr.h
+unifdef-y += mtrr_32.h
+unifdef-y += mtrr_64.h
+unifdef-y += mtrr.h
+unifdef-y += page_32.h
+unifdef-y += page_64.h
+unifdef-y += param_32.h
+unifdef-y += param_64.h
+unifdef-y += posix_types_32.h
+unifdef-y += posix_types_64.h
+unifdef-y += ptrace_32.h
+unifdef-y += ptrace_64.h
+unifdef-y += resource_32.h
+unifdef-y += resource_64.h
+unifdef-y += sembuf_32.h
+unifdef-y += sembuf_64.h
+unifdef-y += setup_32.h
+unifdef-y += setup_64.h
+unifdef-y += shmbuf_32.h
+unifdef-y += shmbuf_64.h
+unifdef-y += shmparam_32.h
+unifdef-y += shmparam_64.h
+unifdef-y += sigcontext_32.h
+unifdef-y += sigcontext_64.h
+unifdef-y += siginfo_32.h
+unifdef-y += siginfo_64.h
+unifdef-y += signal_32.h
+unifdef-y += signal_64.h
+unifdef-y += sockios_32.h
+unifdef-y += sockios_64.h
+unifdef-y += stat_32.h
+unifdef-y += stat_64.h
+unifdef-y += statfs_32.h
+unifdef-y += statfs_64.h
+unifdef-y += termbits_32.h
+unifdef-y += termbits_64.h
+unifdef-y += termios_32.h
+unifdef-y += termios_64.h
+unifdef-y += types_32.h
+unifdef-y += types_64.h
+unifdef-y += unistd_32.h
+unifdef-y += unistd_64.h
+unifdef-y += user_32.h
+unifdef-y += user_64.h
+unifdef-y += vm86.h
+unifdef-y += vsyscall.h

+ 13 - 0
include/asm-x86/a.out.h

@@ -0,0 +1,13 @@
+#ifdef __KERNEL__
+# ifdef CONFIG_X86_32
+#  include "a.out_32.h"
+# else
+#  include "a.out_64.h"
+# endif
+#else
+# ifdef __i386__
+#  include "a.out_32.h"
+# else
+#  include "a.out_64.h"
+# endif
+#endif

+ 0 - 0
include/asm-i386/a.out.h → include/asm-x86/a.out_32.h


+ 0 - 0
include/asm-x86_64/a.out.h → include/asm-x86/a.out_64.h


+ 5 - 0
include/asm-x86/acpi.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "acpi_32.h"
+#else
+# include "acpi_64.h"
+#endif

+ 0 - 0
include/asm-i386/acpi.h → include/asm-x86/acpi_32.h


+ 0 - 0
include/asm-x86_64/acpi.h → include/asm-x86/acpi_64.h


+ 5 - 0
include/asm-x86/agp.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "agp_32.h"
+#else
+# include "agp_64.h"
+#endif

+ 0 - 0
include/asm-i386/agp.h → include/asm-x86/agp_32.h


+ 0 - 0
include/asm-x86_64/agp.h → include/asm-x86/agp_64.h


+ 5 - 0
include/asm-x86/alternative-asm.i

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "alternative-asm_32.i"
+#else
+# include "alternative-asm_64.i"
+#endif

+ 0 - 0
include/asm-i386/alternative-asm.i → include/asm-x86/alternative-asm_32.i


+ 0 - 0
include/asm-x86_64/alternative-asm.i → include/asm-x86/alternative-asm_64.i


+ 5 - 0
include/asm-x86/alternative.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "alternative_32.h"
+#else
+# include "alternative_64.h"
+#endif

+ 0 - 0
include/asm-i386/alternative.h → include/asm-x86/alternative_32.h


+ 0 - 0
include/asm-x86_64/alternative.h → include/asm-x86/alternative_64.h


+ 5 - 0
include/asm-x86/apic.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "apic_32.h"
+#else
+# include "apic_64.h"
+#endif

+ 0 - 0
include/asm-i386/apic.h → include/asm-x86/apic_32.h


+ 0 - 0
include/asm-x86_64/apic.h → include/asm-x86/apic_64.h


+ 5 - 0
include/asm-x86/apicdef.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "apicdef_32.h"
+#else
+# include "apicdef_64.h"
+#endif

+ 0 - 0
include/asm-i386/apicdef.h → include/asm-x86/apicdef_32.h


+ 0 - 0
include/asm-x86_64/apicdef.h → include/asm-x86/apicdef_64.h


+ 0 - 0
include/asm-i386/arch_hooks.h → include/asm-x86/arch_hooks.h


+ 5 - 0
include/asm-x86/atomic.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "atomic_32.h"
+#else
+# include "atomic_64.h"
+#endif

+ 0 - 0
include/asm-i386/atomic.h → include/asm-x86/atomic_32.h


+ 0 - 0
include/asm-x86_64/atomic.h → include/asm-x86/atomic_64.h


+ 13 - 0
include/asm-x86/auxvec.h

@@ -0,0 +1,13 @@
+#ifdef __KERNEL__
+# ifdef CONFIG_X86_32
+#  include "auxvec_32.h"
+# else
+#  include "auxvec_64.h"
+# endif
+#else
+# ifdef __i386__
+#  include "auxvec_32.h"
+# else
+#  include "auxvec_64.h"
+# endif
+#endif

+ 0 - 0
include/asm-i386/auxvec.h → include/asm-x86/auxvec_32.h


+ 0 - 0
include/asm-x86_64/auxvec.h → include/asm-x86/auxvec_64.h


+ 5 - 0
include/asm-x86/bitops.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "bitops_32.h"
+#else
+# include "bitops_64.h"
+#endif

+ 0 - 0
include/asm-i386/bitops.h → include/asm-x86/bitops_32.h


+ 0 - 0
include/asm-x86_64/bitops.h → include/asm-x86/bitops_64.h


+ 0 - 0
include/asm-i386/boot.h → include/asm-x86/boot.h


+ 0 - 0
include/asm-i386/bootparam.h → include/asm-x86/bootparam.h


+ 0 - 0
include/asm-x86_64/bootsetup.h → include/asm-x86/bootsetup.h


+ 5 - 0
include/asm-x86/bug.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "bug_32.h"
+#else
+# include "bug_64.h"
+#endif

+ 0 - 0
include/asm-i386/bug.h → include/asm-x86/bug_32.h


+ 0 - 0
include/asm-x86_64/bug.h → include/asm-x86/bug_64.h


+ 5 - 0
include/asm-x86/bugs.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "bugs_32.h"
+#else
+# include "bugs_64.h"
+#endif

+ 0 - 0
include/asm-i386/bugs.h → include/asm-x86/bugs_32.h


+ 0 - 0
include/asm-x86_64/bugs.h → include/asm-x86/bugs_64.h


+ 13 - 0
include/asm-x86/byteorder.h

@@ -0,0 +1,13 @@
+#ifdef __KERNEL__
+# ifdef CONFIG_X86_32
+#  include "byteorder_32.h"
+# else
+#  include "byteorder_64.h"
+# endif
+#else
+# ifdef __i386__
+#  include "byteorder_32.h"
+# else
+#  include "byteorder_64.h"
+# endif
+#endif

+ 0 - 0
include/asm-i386/byteorder.h → include/asm-x86/byteorder_32.h


+ 0 - 0
include/asm-x86_64/byteorder.h → include/asm-x86/byteorder_64.h


+ 5 - 0
include/asm-x86/cache.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "cache_32.h"
+#else
+# include "cache_64.h"
+#endif

+ 0 - 0
include/asm-i386/cache.h → include/asm-x86/cache_32.h


+ 0 - 0
include/asm-x86_64/cache.h → include/asm-x86/cache_64.h


+ 5 - 0
include/asm-x86/cacheflush.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "cacheflush_32.h"
+#else
+# include "cacheflush_64.h"
+#endif

+ 0 - 0
include/asm-i386/cacheflush.h → include/asm-x86/cacheflush_32.h


+ 0 - 0
include/asm-x86_64/cacheflush.h → include/asm-x86/cacheflush_64.h


+ 0 - 0
include/asm-x86_64/calgary.h → include/asm-x86/calgary.h


+ 0 - 0
include/asm-x86_64/calling.h → include/asm-x86/calling.h


+ 5 - 0
include/asm-x86/checksum.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "checksum_32.h"
+#else
+# include "checksum_64.h"
+#endif

+ 0 - 0
include/asm-i386/checksum.h → include/asm-x86/checksum_32.h


+ 0 - 0
include/asm-x86_64/checksum.h → include/asm-x86/checksum_64.h


+ 5 - 0
include/asm-x86/cmpxchg.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "cmpxchg_32.h"
+#else
+# include "cmpxchg_64.h"
+#endif

+ 0 - 0
include/asm-i386/cmpxchg.h → include/asm-x86/cmpxchg_32.h


+ 0 - 0
include/asm-x86_64/cmpxchg.h → include/asm-x86/cmpxchg_64.h


+ 0 - 0
include/asm-x86_64/compat.h → include/asm-x86/compat.h


+ 0 - 0
include/asm-i386/cpu.h → include/asm-x86/cpu.h


+ 5 - 0
include/asm-x86/cpufeature.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "cpufeature_32.h"
+#else
+# include "cpufeature_64.h"
+#endif

+ 0 - 0
include/asm-i386/cpufeature.h → include/asm-x86/cpufeature_32.h


+ 2 - 2
include/asm-x86_64/cpufeature.h → include/asm-x86/cpufeature_64.h

@@ -1,5 +1,5 @@
 /*
 /*
- * cpufeature.h
+ * cpufeature_32.h
  *
  *
  * Defines x86 CPU feature bits
  * Defines x86 CPU feature bits
  */
  */
@@ -7,7 +7,7 @@
 #ifndef __ASM_X8664_CPUFEATURE_H
 #ifndef __ASM_X8664_CPUFEATURE_H
 #define __ASM_X8664_CPUFEATURE_H
 #define __ASM_X8664_CPUFEATURE_H
 
 
-#include <asm-i386/cpufeature.h>
+#include <asm/cpufeature_32.h>
 
 
 #undef  cpu_has_vme
 #undef  cpu_has_vme
 #define cpu_has_vme            0
 #define cpu_has_vme            0

+ 5 - 0
include/asm-x86/cputime.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "cputime_32.h"
+#else
+# include "cputime_64.h"
+#endif

+ 0 - 0
include/asm-i386/cputime.h → include/asm-x86/cputime_32.h


+ 0 - 0
include/asm-x86_64/cputime.h → include/asm-x86/cputime_64.h


+ 5 - 0
include/asm-x86/current.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "current_32.h"
+#else
+# include "current_64.h"
+#endif

+ 0 - 0
include/asm-i386/current.h → include/asm-x86/current_32.h


+ 0 - 0
include/asm-x86_64/current.h → include/asm-x86/current_64.h


+ 13 - 0
include/asm-x86/debugreg.h

@@ -0,0 +1,13 @@
+#ifdef __KERNEL__
+# ifdef CONFIG_X86_32
+#  include "debugreg_32.h"
+# else
+#  include "debugreg_64.h"
+# endif
+#else
+# ifdef __i386__
+#  include "debugreg_32.h"
+# else
+#  include "debugreg_64.h"
+# endif
+#endif

+ 0 - 0
include/asm-i386/debugreg.h → include/asm-x86/debugreg_32.h


+ 0 - 0
include/asm-x86_64/debugreg.h → include/asm-x86/debugreg_64.h


+ 5 - 0
include/asm-x86/delay.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "delay_32.h"
+#else
+# include "delay_64.h"
+#endif

+ 0 - 0
include/asm-i386/delay.h → include/asm-x86/delay_32.h


+ 0 - 0
include/asm-x86_64/delay.h → include/asm-x86/delay_64.h


+ 5 - 0
include/asm-x86/desc.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "desc_32.h"
+#else
+# include "desc_64.h"
+#endif

+ 0 - 0
include/asm-i386/desc.h → include/asm-x86/desc_32.h


+ 0 - 0
include/asm-x86_64/desc.h → include/asm-x86/desc_64.h


+ 0 - 0
include/asm-x86_64/desc_defs.h → include/asm-x86/desc_defs.h


+ 5 - 0
include/asm-x86/device.h

@@ -0,0 +1,5 @@
+#ifdef CONFIG_X86_32
+# include "device_32.h"
+#else
+# include "device_64.h"
+#endif

+ 0 - 0
include/asm-i386/device.h → include/asm-x86/device_32.h


+ 0 - 0
include/asm-x86_64/device.h → include/asm-x86/device_64.h


部分文件因为文件数量过多而无法显示