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>
tirimbino
Thomas Gleixner 18 years ago
parent 27bd0c9556
commit 96a388de5d
  1. 2
      Documentation/lguest/lguest.c
  2. 2
      Kbuild
  3. 17
      Makefile
  4. 16
      arch/i386/Makefile
  5. 2
      arch/ia64/ia32/audit.c
  6. 4
      arch/um/sys-x86_64/syscall_table.c
  7. 2
      arch/x86/ia32/audit.c
  8. 2
      arch/x86/ia32/ipc32.c
  9. 2
      arch/x86/kernel/cpu/mtrr/state.c
  10. 4
      arch/x86/kernel/syscall_64.c
  11. 12
      include/asm-i386/Kbuild
  12. 1
      include/asm-i386/k8.h
  13. 1
      include/asm-i386/pci-direct.h
  14. 1
      include/asm-i386/stacktrace.h
  15. 2
      include/asm-sh/mpc1211/mc146818rtc.h
  16. 5
      include/asm-x86/8253pit.h
  17. 0
      include/asm-x86/8253pit_32.h
  18. 0
      include/asm-x86/8253pit_64.h
  19. 88
      include/asm-x86/Kbuild
  20. 13
      include/asm-x86/a.out.h
  21. 0
      include/asm-x86/a.out_32.h
  22. 0
      include/asm-x86/a.out_64.h
  23. 5
      include/asm-x86/acpi.h
  24. 0
      include/asm-x86/acpi_32.h
  25. 0
      include/asm-x86/acpi_64.h
  26. 5
      include/asm-x86/agp.h
  27. 0
      include/asm-x86/agp_32.h
  28. 0
      include/asm-x86/agp_64.h
  29. 5
      include/asm-x86/alternative-asm.i
  30. 0
      include/asm-x86/alternative-asm_32.i
  31. 0
      include/asm-x86/alternative-asm_64.i
  32. 5
      include/asm-x86/alternative.h
  33. 0
      include/asm-x86/alternative_32.h
  34. 0
      include/asm-x86/alternative_64.h
  35. 5
      include/asm-x86/apic.h
  36. 0
      include/asm-x86/apic_32.h
  37. 0
      include/asm-x86/apic_64.h
  38. 5
      include/asm-x86/apicdef.h
  39. 0
      include/asm-x86/apicdef_32.h
  40. 0
      include/asm-x86/apicdef_64.h
  41. 0
      include/asm-x86/arch_hooks.h
  42. 5
      include/asm-x86/atomic.h
  43. 0
      include/asm-x86/atomic_32.h
  44. 0
      include/asm-x86/atomic_64.h
  45. 13
      include/asm-x86/auxvec.h
  46. 0
      include/asm-x86/auxvec_32.h
  47. 0
      include/asm-x86/auxvec_64.h
  48. 5
      include/asm-x86/bitops.h
  49. 0
      include/asm-x86/bitops_32.h
  50. 0
      include/asm-x86/bitops_64.h
  51. 0
      include/asm-x86/boot.h
  52. 0
      include/asm-x86/bootparam.h
  53. 0
      include/asm-x86/bootsetup.h
  54. 5
      include/asm-x86/bug.h
  55. 0
      include/asm-x86/bug_32.h
  56. 0
      include/asm-x86/bug_64.h
  57. 5
      include/asm-x86/bugs.h
  58. 0
      include/asm-x86/bugs_32.h
  59. 0
      include/asm-x86/bugs_64.h
  60. 13
      include/asm-x86/byteorder.h
  61. 0
      include/asm-x86/byteorder_32.h
  62. 0
      include/asm-x86/byteorder_64.h
  63. 5
      include/asm-x86/cache.h
  64. 0
      include/asm-x86/cache_32.h
  65. 0
      include/asm-x86/cache_64.h
  66. 5
      include/asm-x86/cacheflush.h
  67. 0
      include/asm-x86/cacheflush_32.h
  68. 0
      include/asm-x86/cacheflush_64.h
  69. 0
      include/asm-x86/calgary.h
  70. 0
      include/asm-x86/calling.h
  71. 5
      include/asm-x86/checksum.h
  72. 0
      include/asm-x86/checksum_32.h
  73. 0
      include/asm-x86/checksum_64.h
  74. 5
      include/asm-x86/cmpxchg.h
  75. 0
      include/asm-x86/cmpxchg_32.h
  76. 0
      include/asm-x86/cmpxchg_64.h
  77. 0
      include/asm-x86/compat.h
  78. 0
      include/asm-x86/cpu.h
  79. 5
      include/asm-x86/cpufeature.h
  80. 0
      include/asm-x86/cpufeature_32.h
  81. 4
      include/asm-x86/cpufeature_64.h
  82. 5
      include/asm-x86/cputime.h
  83. 0
      include/asm-x86/cputime_32.h
  84. 0
      include/asm-x86/cputime_64.h
  85. 5
      include/asm-x86/current.h
  86. 0
      include/asm-x86/current_32.h
  87. 0
      include/asm-x86/current_64.h
  88. 13
      include/asm-x86/debugreg.h
  89. 0
      include/asm-x86/debugreg_32.h
  90. 0
      include/asm-x86/debugreg_64.h
  91. 5
      include/asm-x86/delay.h
  92. 0
      include/asm-x86/delay_32.h
  93. 0
      include/asm-x86/delay_64.h
  94. 5
      include/asm-x86/desc.h
  95. 0
      include/asm-x86/desc_32.h
  96. 0
      include/asm-x86/desc_64.h
  97. 0
      include/asm-x86/desc_defs.h
  98. 5
      include/asm-x86/device.h
  99. 0
      include/asm-x86/device_32.h
  100. 0
      include/asm-x86/device_64.h
  101. Some files were not shown because too many files have changed in this diff Show More

@ -46,7 +46,7 @@ typedef uint32_t u32;
typedef uint16_t u16;
typedef uint8_t u8;
#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 */

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

@ -863,7 +863,7 @@ ifneq ($(KBUILD_SRC),)
/bin/false; \
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
# 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.
include/asm:
@echo ' SYMLINK $@ -> include/asm-$(ARCH)'
@echo ' SYMLINK $@ -> include/asm-$(SRCARCH)'
$(Q)if [ ! -d include ]; then mkdir -p include; fi;
@ln -fsn asm-$(ARCH) $@
@ln -fsn asm-$(SRCARCH) $@
# Generate some files
# ---------------------------------------------------------------------------
@ -937,7 +937,8 @@ depend dep:
INSTALL_HDR_PATH=$(objtree)/usr
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
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
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
$(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
headers_check_all: headers_install_all
@ -962,7 +963,7 @@ headers_check_all: headers_install_all
PHONY += headers_check
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

@ -71,32 +71,32 @@ CFLAGS += $(cflags-y)
mcore-y := arch/x86/mach-default
# 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
# 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
# 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
# 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
#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
# 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
core-$(CONFIG_X86_GENERICARCH) += arch/x86/mach-generic/
# 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
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/
# 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

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

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

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

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

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

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

@ -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

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

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

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

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

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

@ -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

@ -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 +1,5 @@
#ifdef CONFIG_X86_32
# include "acpi_32.h"
#else
# include "acpi_64.h"
#endif

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

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

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

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

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

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

@ -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 +1,5 @@
#ifdef CONFIG_X86_32
# include "bitops_32.h"
#else
# include "bitops_64.h"
#endif

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

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

@ -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 +1,5 @@
#ifdef CONFIG_X86_32
# include "cache_32.h"
#else
# include "cache_64.h"
#endif

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

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

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

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

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

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

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

@ -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 +1,5 @@
#ifdef CONFIG_X86_32
# include "delay_32.h"
#else
# include "delay_64.h"
#endif

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

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

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save