Commit 96a388de authored by Thomas Gleixner's avatar Thomas Gleixner

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: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 27bd0c95
......@@ -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
......
#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>
};
#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>
};
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
#include <asm-x86_64/k8.h>
#include "asm-x86_64/pci-direct.h"
#include <asm-x86_64/stacktrace.h>
/*
* MPC1211 uses PC/AT style RTC definitions.
*/
#include <asm-i386/mc146818rtc.h>
#include <asm-x86/mc146818rtc_32.h>
#ifdef CONFIG_X86_32
# include "8253pit_32.h"
#else
# include "8253pit_64.h"
#endif
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
#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
#ifdef CONFIG_X86_32
# include "acpi_32.h"
#else
# include "acpi_64.h"
#endif
#ifdef CONFIG_X86_32
# include "agp_32.h"
#else
# include "agp_64.h"
#endif
#ifdef CONFIG_X86_32
# include "alternative-asm_32.i"
#else
# include "alternative-asm_64.i"
#endif
#ifdef CONFIG_X86_32
# include "alternative_32.h"
#else
# include "alternative_64.h"
#endif
#ifdef CONFIG_X86_32
# include "apic_32.h"
#else
# include "apic_64.h"
#endif
#ifdef CONFIG_X86_32
# include "apicdef_32.h"
#else
# include "apicdef_64.h"
#endif
#ifdef CONFIG_X86_32
# include "atomic_32.h"
#else
# include "atomic_64.h"
#endif
#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
#ifdef CONFIG_X86_32
# include "bitops_32.h"
#else
# include "bitops_64.h"
#endif
#ifdef CONFIG_X86_32
# include "bug_32.h"
#else
# include "bug_64.h"
#endif
#ifdef CONFIG_X86_32
# include "bugs_32.h"
#else
# include "bugs_64.h"
#endif
#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
#ifdef CONFIG_X86_32
# include "cache_32.h"
#else
# include "cache_64.h"
#endif
#ifdef CONFIG_X86_32
# include "cacheflush_32.h"
#else
# include "cacheflush_64.h"
#endif
#ifdef CONFIG_X86_32
# include "checksum_32.h"
#else
# include "checksum_64.h"
#endif
#ifdef CONFIG_X86_32
# include "cmpxchg_32.h"
#else
# include "cmpxchg_64.h"
#endif
#ifdef CONFIG_X86_32
# include "cpufeature_32.h"
#else
# include "cpufeature_64.h"
#endif
/*
* 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
......
#ifdef CONFIG_X86_32
# include "cputime_32.h"
#else
# include "cputime_64.h"
#endif
#ifdef CONFIG_X86_32
# include "current_32.h"
#else
# include "current_64.h"
#endif
#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
#ifdef CONFIG_X86_32
# include "delay_32.h"
#else
# include "delay_64.h"
#endif
#ifdef CONFIG_X86_32
# include "desc_32.h"
#else
# include "desc_64.h"
#endif
#ifdef CONFIG_X86_32
# include "device_32.h"
#else
# include "device_64.h"
#endif
#ifdef CONFIG_X86_32
# include "div64_32.h"
#else
# include "div64_64.h"
#endif
#ifdef CONFIG_X86_32
# include "dma-mapping_32.h"
#else
# include "dma-mapping_64.h"
#endif
#ifdef CONFIG_X86_32
# include "dma_32.h"
#else
# include "dma_64.h"
#endif
#ifdef CONFIG_X86_32
# include "dmi_32.h"
#else
# include "dmi_64.h"
#endif
#ifdef CONFIG_X86_32
# include "dwarf2_32.h"
#else
# include "dwarf2_64.h"
#endif
#ifdef CONFIG_X86_32
# include "e820_32.h"
#else
# include "e820_64.h"
#endif
#ifdef CONFIG_X86_32
# include "edac_32.h"
#else
# include "edac_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "elf_32.h"
# else
# include "elf_64.h"
# endif
#else
# ifdef __i386__
# include "elf_32.h"
# else
# include "elf_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "errno_32.h"
# else
# include "errno_64.h"
# endif
#else
# ifdef __i386__
# include "errno_32.h"
# else
# include "errno_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "fb_32.h"
#else
# include "fb_64.h"
#endif
#ifdef CONFIG_X86_32
# include "fixmap_32.h"
#else
# include "fixmap_64.h"
#endif
#ifdef CONFIG_X86_32
# include "floppy_32.h"
#else
# include "floppy_64.h"
#endif
#ifdef CONFIG_X86_32
# include "futex_32.h"
#else
# include "futex_64.h"
#endif
#ifdef CONFIG_X86_32
# include "genapic_32.h"
#else
# include "genapic_64.h"
#endif
#ifdef CONFIG_X86_32
# include "hardirq_32.h"
#else
# include "hardirq_64.h"
#endif
#ifdef CONFIG_X86_32
# include "hpet_32.h"
#else
# include "hpet_64.h"
#endif
#ifndef _ASM_X8664_HPET_H
#define _ASM_X8664_HPET_H 1
#include <asm-i386/hpet.h>
#include <asm/hpet_32.h>
#define HPET_TICK_RATE (HZ * 100000UL)
......
#ifdef CONFIG_X86_32
# include "hw_irq_32.h"
#else
# include "hw_irq_64.h"
#endif
#ifdef CONFIG_X86_32
# include "i387_32.h"
#else
# include "i387_64.h"
#endif
#ifdef CONFIG_X86_32
# include "i8253_32.h"
#else
# include "i8253_64.h"
#endif
#ifdef CONFIG_X86_32
# include "intel_arch_perfmon_32.h"
#else
# include "intel_arch_perfmon_64.h"
#endif
#ifdef CONFIG_X86_32
# include "io_32.h"
#else
# include "io_64.h"
#endif
#ifdef CONFIG_X86_32
# include "io_apic_32.h"
#else
# include "io_apic_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "ioctls_32.h"
# else
# include "ioctls_64.h"
# endif
#else
# ifdef __i386__
# include "ioctls_32.h"
# else
# include "ioctls_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "ipcbuf_32.h"
# else
# include "ipcbuf_64.h"
# endif
#else
# ifdef __i386__
# include "ipcbuf_32.h"
# else
# include "ipcbuf_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "irq_32.h"
#else
# include "irq_64.h"
#endif
#ifdef CONFIG_X86_32
# include "irq_regs_32.h"
#else
# include "irq_regs_64.h"
#endif
#ifdef CONFIG_X86_32
# include "irqflags_32.h"
#else
# include "irqflags_64.h"
#endif
#ifdef CONFIG_X86_32
# include "kdebug_32.h"
#else
# include "kdebug_64.h"
#endif
#ifdef CONFIG_X86_32
# include "kexec_32.h"
#else
# include "kexec_64.h"
#endif
#ifdef CONFIG_X86_32
# include "kmap_types_32.h"
#else
# include "kmap_types_64.h"
#endif
#ifdef CONFIG_X86_32
# include "kprobes_32.h"
#else
# include "kprobes_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "ldt_32.h"
# else
# include "ldt_64.h"
# endif
#else
# ifdef __i386__
# include "ldt_32.h"
# else
# include "ldt_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "linkage_32.h"
#else
# include "linkage_64.h"
#endif
#ifdef CONFIG_X86_32
# include "local_32.h"
#else
# include "local_64.h"
#endif
#ifdef CONFIG_X86_32
# include "mc146818rtc_32.h"
#else
# include "mc146818rtc_64.h"
#endif
#ifdef CONFIG_X86_32
# include "mce_32.h"
#else
# include "mce_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "mman_32.h"
# else
# include "mman_64.h"
# endif
#else
# ifdef __i386__
# include "mman_32.h"
# else
# include "mman_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "mmu_32.h"
#else
# include "mmu_64.h"
#endif
#ifdef CONFIG_X86_32
# include "mmu_context_32.h"
#else
# include "mmu_context_64.h"
#endif
#ifdef CONFIG_X86_32
# include "mmzone_32.h"
#else
# include "mmzone_64.h"
#endif
#ifdef CONFIG_X86_32
# include "module_32.h"
#else
# include "module_64.h"
#endif
#ifdef CONFIG_X86_32
# include "mpspec_32.h"
#else
# include "mpspec_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "msgbuf_32.h"
# else
# include "msgbuf_64.h"
# endif
#else
# ifdef __i386__
# include "msgbuf_32.h"
# else
# include "msgbuf_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "msr_32.h"
# else
# include "msr_64.h"
# endif
#else
# ifdef __i386__
# include "msr_32.h"
# else
# include "msr_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "mtrr_32.h"
# else
# include "mtrr_64.h"
# endif
#else
# ifdef __i386__
# include "mtrr_32.h"
# else
# include "mtrr_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "mutex_32.h"
#else
# include "mutex_64.h"
#endif
#ifdef CONFIG_X86_32
# include "namei_32.h"
#else
# include "namei_64.h"
#endif
#ifdef CONFIG_X86_32
# include "nmi_32.h"
#else
# include "nmi_64.h"
#endif
#ifdef CONFIG_X86_32
# include "numa_32.h"
#else
# include "numa_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "page_32.h"
# else
# include "page_64.h"
# endif
#else
# ifdef __i386__
# include "page_32.h"
# else
# include "page_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "param_32.h"
# else
# include "param_64.h"
# endif
#else
# ifdef __i386__
# include "param_32.h"
# else
# include "param_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "parport_32.h"
#else
# include "parport_64.h"
#endif
#ifdef CONFIG_X86_32
# include "pci_32.h"
#else
# include "pci_64.h"
#endif
#ifdef CONFIG_X86_32
# include "percpu_32.h"
#else
# include "percpu_64.h"
#endif
#ifdef CONFIG_X86_32
# include "pgalloc_32.h"
#else
# include "pgalloc_64.h"
#endif
#ifdef CONFIG_X86_32
# include "pgtable_32.h"
#else
# include "pgtable_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "posix_types_32.h"
# else
# include "posix_types_64.h"
# endif
#else
# ifdef __i386__
# include "posix_types_32.h"
# else
# include "posix_types_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "processor_32.h"
#else
# include "processor_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "ptrace-abi_32.h"
# else
# include "ptrace-abi_64.h"
# endif
#else
# ifdef __i386__
# include "ptrace-abi_32.h"
# else
# include "ptrace-abi_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "ptrace_32.h"
# else
# include "ptrace_64.h"
# endif
#else
# ifdef __i386__
# include "ptrace_32.h"
# else
# include "ptrace_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "required-features_32.h"
#else
# include "required-features_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "resource_32.h"
# else
# include "resource_64.h"
# endif
#else
# ifdef __i386__
# include "resource_32.h"
# else
# include "resource_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "resume-trace_32.h"
#else
# include "resume-trace_64.h"
#endif
#ifdef CONFIG_X86_32
# include "rtc_32.h"
#else
# include "rtc_64.h"
#endif
#ifdef CONFIG_X86_32
# include "rwlock_32.h"
#else
# include "rwlock_64.h"
#endif
#ifdef CONFIG_X86_32
# include "scatterlist_32.h"
#else
# include "scatterlist_64.h"
#endif
#ifdef CONFIG_X86_32
# include "seccomp_32.h"
#else
# include "seccomp_64.h"
#endif
#ifdef CONFIG_X86_32
# include "sections_32.h"
#else
# include "sections_64.h"
#endif
#ifdef CONFIG_X86_32
# include "segment_32.h"
#else
# include "segment_64.h"
#endif
#ifdef CONFIG_X86_32
# include "semaphore_32.h"
#else
# include "semaphore_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "sembuf_32.h"
# else
# include "sembuf_64.h"
# endif
#else
# ifdef __i386__
# include "sembuf_32.h"
# else
# include "sembuf_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "serial_32.h"
#else
# include "serial_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "setup_32.h"
# else
# include "setup_64.h"
# endif
#else
# ifdef __i386__
# include "setup_32.h"
# else
# include "setup_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "shmbuf_32.h"
# else
# include "shmbuf_64.h"
# endif
#else
# ifdef __i386__
# include "shmbuf_32.h"
# else
# include "shmbuf_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "shmparam_32.h"
# else
# include "shmparam_64.h"
# endif
#else
# ifdef __i386__
# include "shmparam_32.h"
# else
# include "shmparam_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "sigcontext_32.h"
# else
# include "sigcontext_64.h"
# endif
#else
# ifdef __i386__
# include "sigcontext_32.h"
# else
# include "sigcontext_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "siginfo_32.h"
# else
# include "siginfo_64.h"
# endif
#else
# ifdef __i386__
# include "siginfo_32.h"
# else
# include "siginfo_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "signal_32.h"
# else
# include "signal_64.h"
# endif
#else
# ifdef __i386__
# include "signal_32.h"
# else
# include "signal_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "smp_32.h"
#else
# include "smp_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "sockios_32.h"
# else
# include "sockios_64.h"
# endif
#else
# ifdef __i386__
# include "sockios_32.h"
# else
# include "sockios_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "sparsemem_32.h"
#else
# include "sparsemem_64.h"
#endif
#ifdef CONFIG_X86_32
# include "spinlock_32.h"
#else
# include "spinlock_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "stat_32.h"
# else
# include "stat_64.h"
# endif
#else
# ifdef __i386__
# include "stat_32.h"
# else
# include "stat_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "statfs_32.h"
# else
# include "statfs_64.h"
# endif
#else
# ifdef __i386__
# include "statfs_32.h"
# else
# include "statfs_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "string_32.h"
#else
# include "string_64.h"
#endif
#ifdef CONFIG_X86_32
# include "suspend_32.h"
#else
# include "suspend_64.h"
#endif
#ifdef CONFIG_X86_32
# include "system_32.h"
#else
# include "system_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "termbits_32.h"
# else
# include "termbits_64.h"
# endif
#else
# ifdef __i386__
# include "termbits_32.h"
# else
# include "termbits_64.h"
# endif
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "termios_32.h"
# else
# include "termios_64.h"
# endif
#else
# ifdef __i386__
# include "termios_32.h"
# else
# include "termios_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "thread_info_32.h"
#else
# include "thread_info_64.h"
#endif
#ifdef CONFIG_X86_32
# include "timex_32.h"
#else
# include "timex_64.h"
#endif
#ifdef CONFIG_X86_32
# include "tlb_32.h"
#else
# include "tlb_64.h"
#endif
#ifdef CONFIG_X86_32
# include "tlbflush_32.h"
#else
# include "tlbflush_64.h"
#endif
#ifdef CONFIG_X86_32
# include "topology_32.h"
#else
# include "topology_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "types_32.h"
# else
# include "types_64.h"
# endif
#else
# ifdef __i386__
# include "types_32.h"
# else
# include "types_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "uaccess_32.h"
#else
# include "uaccess_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "ucontext_32.h"
# else
# include "ucontext_64.h"
# endif
#else
# ifdef __i386__
# include "ucontext_32.h"
# else
# include "ucontext_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "unaligned_32.h"
#else
# include "unaligned_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "unistd_32.h"
# else
# include "unistd_64.h"
# endif
#else
# ifdef __i386__
# include "unistd_32.h"
# else
# include "unistd_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "unwind_32.h"
#else
# include "unwind_64.h"
#endif
#ifdef __KERNEL__
# ifdef CONFIG_X86_32
# include "user_32.h"
# else
# include "user_64.h"
# endif
#else
# ifdef __i386__
# include "user_32.h"
# else
# include "user_64.h"
# endif
#endif
#ifdef CONFIG_X86_32
# include "xor_32.h"
#else
# include "xor_64.h"
#endif
include include/asm-generic/Kbuild.asm
ALTARCH := i386
ARCHDEF := defined __x86_64__
ALTARCHDEF := defined __i386__
header-y += boot.h
header-y += bootsetup.h
header-y += debugreg.h
header-y += ldt.h
header-y += msr-index.h
header-y += prctl.h
header-y += ptrace-abi.h
header-y += sigcontext32.h
header-y += ucontext.h
header-y += vsyscall32.h
unifdef-y += mce.h
unifdef-y += msr.h
unifdef-y += mtrr.h
unifdef-y += vsyscall.h
#include <asm-i386/boot.h>
#include <asm-i386/bootparam.h>
#include <asm-i386/cpu.h>
#ifndef _ASM_EMERGENCY_RESTART_H
#define _ASM_EMERGENCY_RESTART_H
extern void machine_emergency_restart(void);
#endif /* _ASM_EMERGENCY_RESTART_H */
#include <asm-generic/fcntl.h>
#include <asm-i386/hypertransport.h>
#include <asm-i386/ide.h>
#include <asm-generic/ioctl.h>
#include <asm-i386/ist.h>
#include <asm-i386/msidef.h>
#include <asm-i386/msr-index.h>
#include <asm-generic/poll.h>
#include <asm-i386/processor-flags.h>
#ifndef _ASM_SOCKET_H
#define _ASM_SOCKET_H
#include <asm/sockios.h>
/* For setsockopt(2) */
#define SOL_SOCKET 1
#define SO_DEBUG 1
#define SO_REUSEADDR 2
#define SO_TYPE 3
#define SO_ERROR 4
#define SO_DONTROUTE 5
#define SO_BROADCAST 6
#define SO_SNDBUF 7
#define SO_RCVBUF 8
#define SO_SNDBUFFORCE 32
#define SO_RCVBUFFORCE 33
#define SO_KEEPALIVE 9
#define SO_OOBINLINE 10
#define SO_NO_CHECK 11
#define SO_PRIORITY 12
#define SO_LINGER 13
#define SO_BSDCOMPAT 14
/* To add :#define SO_REUSEPORT 15 */
#define SO_PASSCRED 16
#define SO_PEERCRED 17
#define SO_RCVLOWAT 18
#define SO_SNDLOWAT 19
#define SO_RCVTIMEO 20
#define SO_SNDTIMEO 21
/* Security levels - as per NRL IPv6 - don't actually do anything */
#define SO_SECURITY_AUTHENTICATION 22
#define SO_SECURITY_ENCRYPTION_TRANSPORT 23
#define SO_SECURITY_ENCRYPTION_NETWORK 24
#define SO_BINDTODEVICE 25
/* Socket filtering */
#define SO_ATTACH_FILTER 26
#define SO_DETACH_FILTER 27
#define SO_PEERNAME 28
#define SO_TIMESTAMP 29
#define SCM_TIMESTAMP SO_TIMESTAMP
#define SO_ACCEPTCONN 30
#define SO_PEERSEC 31
#define SO_PASSSEC 34
#define SO_TIMESTAMPNS 35
#define SCM_TIMESTAMPNS SO_TIMESTAMPNS
#endif /* _ASM_SOCKET_H */
#ifndef __ASM_SPINLOCK_TYPES_H
#define __ASM_SPINLOCK_TYPES_H
#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif
typedef struct {
unsigned int slock;
} raw_spinlock_t;
#define __RAW_SPIN_LOCK_UNLOCKED { 1 }
typedef struct {
unsigned int lock;
} raw_rwlock_t;
#define __RAW_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
#endif
#include <asm-i386/therm_throt.h>
#include <asm-i386/tsc.h>
/*
* Access to VGA videoram
*
* (c) 1998 Martin Mares <mj@ucw.cz>
*/
#ifndef _LINUX_ASM_VGA_H_
#define _LINUX_ASM_VGA_H_
/*
* On the PC, we can just recalculate addresses and then
* access the videoram directly without any black magic.
*/
#define VGA_MAP_MEM(x,s) (unsigned long)phys_to_virt(x)
#define vga_readb(x) (*(x))
#define vga_writeb(x,y) (*(y) = (x))
#endif
......@@ -119,5 +119,5 @@ sed -n -e '/^\#define/ { s/[^_]*__NR_\([^[:space:]]*\).*/\
\#endif/p }' $1
}
(ignore_list && syscall_list ${srctree}/include/asm-i386/unistd.h) | \
(ignore_list && syscall_list ${srctree}/include/asm-x86/unistd_32.h) | \
$* -E -x c - > /dev/null
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment