Merge branch 'x86/um-header' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86/um-header' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (26 commits) x86: canonicalize remaining header guards x86: drop double underscores from header guards x86: Fix ASM_X86__ header guards x86, um: get rid of uml-config.h x86, um: get rid of arch/um/Kconfig.arch x86, um: get rid of arch/um/os symlink x86, um: get rid of excessive includes of uml-config.h x86, um: get rid of header symlinks x86, um: merge Kconfig.i386 and Kconfig.x86_64 x86, um: get rid of sysdep symlink x86, um: trim the junk from uml ptrace-*.h x86, um: take vm-flags.h to sysdep x86, um: get rid of uml asm/arch x86, um: get rid of uml highmem.h x86, um: get rid of uml unistd.h x86, um: get rid of system.h -> system.h include x86, um: uml atomic.h is not needed anymore x86, um: untangle uml ldt.h x86, um: get rid of more uml asm/arch uses x86, um: remove dead header (uml module-generic.h; never used these days) ...
This commit is contained in:
2
Makefile
2
Makefile
@@ -437,7 +437,7 @@ ifeq ($(config-targets),1)
|
|||||||
# KBUILD_DEFCONFIG may point out an alternative default configuration
|
# KBUILD_DEFCONFIG may point out an alternative default configuration
|
||||||
# used for 'make defconfig'
|
# used for 'make defconfig'
|
||||||
include $(srctree)/arch/$(SRCARCH)/Makefile
|
include $(srctree)/arch/$(SRCARCH)/Makefile
|
||||||
export KBUILD_DEFCONFIG
|
export KBUILD_DEFCONFIG KBUILD_KCONFIG
|
||||||
|
|
||||||
config %config: scripts_basic outputmakefile FORCE
|
config %config: scripts_basic outputmakefile FORCE
|
||||||
$(Q)mkdir -p include/linux include/config
|
$(Q)mkdir -p include/linux include/config
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
#include <asm-x86/unistd_32.h>
|
#include "../../x86/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>
|
||||||
|
@@ -122,7 +122,6 @@ typedef struct sigaltstack {
|
|||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
struct pt_regs;
|
struct pt_regs;
|
||||||
extern void do_signal(struct pt_regs *regs, unsigned long thread_info_flags);
|
|
||||||
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
|
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
|
||||||
#endif /* __KERNEL__ */
|
#endif /* __KERNEL__ */
|
||||||
|
|
||||||
|
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
|
#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
|
||||||
|
|
||||||
|
extern void do_signal(struct pt_regs *regs, unsigned long thread_info_flags);
|
||||||
|
|
||||||
extern void __user * get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
|
extern void __user * get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
|
||||||
size_t frame_size);
|
size_t frame_size);
|
||||||
extern void restore_sigmask(sigset_t *set);
|
extern void restore_sigmask(sigset_t *set);
|
||||||
|
77
arch/um/Kconfig.common
Normal file
77
arch/um/Kconfig.common
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
config DEFCONFIG_LIST
|
||||||
|
string
|
||||||
|
option defconfig_list
|
||||||
|
default "arch/$ARCH/defconfig"
|
||||||
|
|
||||||
|
# UML uses the generic IRQ subsystem
|
||||||
|
config GENERIC_HARDIRQS
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
|
config UML
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MMU
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NO_IOMEM
|
||||||
|
def_bool y
|
||||||
|
|
||||||
|
mainmenu "Linux/Usermode Kernel Configuration"
|
||||||
|
|
||||||
|
config ISA
|
||||||
|
bool
|
||||||
|
|
||||||
|
config SBUS
|
||||||
|
bool
|
||||||
|
|
||||||
|
config PCI
|
||||||
|
bool
|
||||||
|
|
||||||
|
config PCMCIA
|
||||||
|
bool
|
||||||
|
|
||||||
|
# Yet to do!
|
||||||
|
config TRACE_IRQFLAGS_SUPPORT
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config LOCKDEP_SUPPORT
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
|
config STACKTRACE_SUPPORT
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config GENERIC_CALIBRATE_DELAY
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
|
config GENERIC_BUG
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
depends on BUG
|
||||||
|
|
||||||
|
config GENERIC_TIME
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
|
config GENERIC_CLOCKEVENTS
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
|
# Used in kernel/irq/manage.c and include/linux/irq.h
|
||||||
|
config IRQ_RELEASE_METHOD
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
|
config HZ
|
||||||
|
int
|
||||||
|
default 100
|
||||||
|
|
||||||
|
config SUBARCH
|
||||||
|
string
|
||||||
|
option env="SUBARCH"
|
42
arch/um/Kconfig.rest
Normal file
42
arch/um/Kconfig.rest
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
source "init/Kconfig"
|
||||||
|
|
||||||
|
source "kernel/Kconfig.freezer"
|
||||||
|
|
||||||
|
source "drivers/block/Kconfig"
|
||||||
|
|
||||||
|
source "arch/um/Kconfig.char"
|
||||||
|
|
||||||
|
source "drivers/base/Kconfig"
|
||||||
|
|
||||||
|
source "net/Kconfig"
|
||||||
|
|
||||||
|
source "arch/um/Kconfig.net"
|
||||||
|
|
||||||
|
source "drivers/net/Kconfig"
|
||||||
|
|
||||||
|
source "drivers/connector/Kconfig"
|
||||||
|
|
||||||
|
source "fs/Kconfig"
|
||||||
|
|
||||||
|
source "security/Kconfig"
|
||||||
|
|
||||||
|
source "crypto/Kconfig"
|
||||||
|
|
||||||
|
source "lib/Kconfig"
|
||||||
|
|
||||||
|
source "drivers/scsi/Kconfig"
|
||||||
|
|
||||||
|
source "drivers/md/Kconfig"
|
||||||
|
|
||||||
|
if BROKEN
|
||||||
|
source "drivers/mtd/Kconfig"
|
||||||
|
endif
|
||||||
|
|
||||||
|
source "drivers/leds/Kconfig"
|
||||||
|
|
||||||
|
#This is just to shut up some Kconfig warnings, so no prompt.
|
||||||
|
config INPUT
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
source "arch/um/Kconfig.debug"
|
@@ -1,79 +1,3 @@
|
|||||||
config DEFCONFIG_LIST
|
|
||||||
string
|
|
||||||
option defconfig_list
|
|
||||||
default "arch/$ARCH/defconfig"
|
|
||||||
|
|
||||||
# UML uses the generic IRQ subsystem
|
|
||||||
config GENERIC_HARDIRQS
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config UML
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config MMU
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config NO_IOMEM
|
|
||||||
def_bool y
|
|
||||||
|
|
||||||
mainmenu "Linux/Usermode Kernel Configuration"
|
|
||||||
|
|
||||||
config ISA
|
|
||||||
bool
|
|
||||||
|
|
||||||
config SBUS
|
|
||||||
bool
|
|
||||||
|
|
||||||
config PCI
|
|
||||||
bool
|
|
||||||
|
|
||||||
config PCMCIA
|
|
||||||
bool
|
|
||||||
|
|
||||||
# Yet to do!
|
|
||||||
config TRACE_IRQFLAGS_SUPPORT
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config LOCKDEP_SUPPORT
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config STACKTRACE_SUPPORT
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config GENERIC_CALIBRATE_DELAY
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config GENERIC_BUG
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
depends on BUG
|
|
||||||
|
|
||||||
config GENERIC_TIME
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config GENERIC_CLOCKEVENTS
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
# Used in kernel/irq/manage.c and include/linux/irq.h
|
|
||||||
config IRQ_RELEASE_METHOD
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config HZ
|
|
||||||
int
|
|
||||||
default 100
|
|
||||||
|
|
||||||
menu "UML-specific options"
|
|
||||||
|
|
||||||
config STATIC_LINK
|
config STATIC_LINK
|
||||||
bool "Force a static link"
|
bool "Force a static link"
|
||||||
default n
|
default n
|
||||||
@@ -85,7 +9,6 @@ config STATIC_LINK
|
|||||||
Additionally, this option enables using higher memory spaces (up to
|
Additionally, this option enables using higher memory spaces (up to
|
||||||
2.75G) for UML.
|
2.75G) for UML.
|
||||||
|
|
||||||
source "arch/um/Kconfig.arch"
|
|
||||||
source "mm/Kconfig"
|
source "mm/Kconfig"
|
||||||
source "kernel/time/Kconfig"
|
source "kernel/time/Kconfig"
|
||||||
|
|
||||||
@@ -224,48 +147,3 @@ config KERNEL_STACK_ORDER
|
|||||||
This option determines the size of UML kernel stacks. They will
|
This option determines the size of UML kernel stacks. They will
|
||||||
be 1 << order pages. The default is OK unless you're running Valgrind
|
be 1 << order pages. The default is OK unless you're running Valgrind
|
||||||
on UML, in which case, set this to 3.
|
on UML, in which case, set this to 3.
|
||||||
|
|
||||||
endmenu
|
|
||||||
|
|
||||||
source "init/Kconfig"
|
|
||||||
|
|
||||||
source "kernel/Kconfig.freezer"
|
|
||||||
|
|
||||||
source "drivers/block/Kconfig"
|
|
||||||
|
|
||||||
source "arch/um/Kconfig.char"
|
|
||||||
|
|
||||||
source "drivers/base/Kconfig"
|
|
||||||
|
|
||||||
source "net/Kconfig"
|
|
||||||
|
|
||||||
source "arch/um/Kconfig.net"
|
|
||||||
|
|
||||||
source "drivers/net/Kconfig"
|
|
||||||
|
|
||||||
source "drivers/connector/Kconfig"
|
|
||||||
|
|
||||||
source "fs/Kconfig"
|
|
||||||
|
|
||||||
source "security/Kconfig"
|
|
||||||
|
|
||||||
source "crypto/Kconfig"
|
|
||||||
|
|
||||||
source "lib/Kconfig"
|
|
||||||
|
|
||||||
source "drivers/scsi/Kconfig"
|
|
||||||
|
|
||||||
source "drivers/md/Kconfig"
|
|
||||||
|
|
||||||
if BROKEN
|
|
||||||
source "drivers/mtd/Kconfig"
|
|
||||||
endif
|
|
||||||
|
|
||||||
source "drivers/leds/Kconfig"
|
|
||||||
|
|
||||||
#This is just to shut up some Kconfig warnings, so no prompt.
|
|
||||||
config INPUT
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
source "arch/um/Kconfig.debug"
|
|
@@ -1,3 +1,7 @@
|
|||||||
|
source "arch/um/Kconfig.common"
|
||||||
|
|
||||||
|
menu "UML-specific options"
|
||||||
|
|
||||||
menu "Host processor type and features"
|
menu "Host processor type and features"
|
||||||
|
|
||||||
source "arch/x86/Kconfig.cpu"
|
source "arch/x86/Kconfig.cpu"
|
||||||
@@ -5,24 +9,25 @@ source "arch/x86/Kconfig.cpu"
|
|||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
config UML_X86
|
config UML_X86
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config X86_32
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
select HAVE_AOUT
|
|
||||||
|
|
||||||
config RWSEM_XCHGADD_ALGORITHM
|
|
||||||
def_bool y
|
def_bool y
|
||||||
|
|
||||||
config 64BIT
|
config 64BIT
|
||||||
bool
|
bool
|
||||||
default n
|
default SUBARCH = "x86_64"
|
||||||
|
|
||||||
|
config X86_32
|
||||||
|
def_bool !64BIT
|
||||||
|
select HAVE_AOUT
|
||||||
|
|
||||||
|
config RWSEM_XCHGADD_ALGORITHM
|
||||||
|
def_bool X86_XADD
|
||||||
|
|
||||||
|
config RWSEM_GENERIC_SPINLOCK
|
||||||
|
def_bool !X86_XADD
|
||||||
|
|
||||||
config 3_LEVEL_PGTABLES
|
config 3_LEVEL_PGTABLES
|
||||||
bool "Three-level pagetables (EXPERIMENTAL)"
|
bool "Three-level pagetables (EXPERIMENTAL)" if !64BIT
|
||||||
default n
|
default 64BIT
|
||||||
depends on EXPERIMENTAL
|
depends on EXPERIMENTAL
|
||||||
help
|
help
|
||||||
Three-level pagetables will let UML have more than 4G of physical
|
Three-level pagetables will let UML have more than 4G of physical
|
||||||
@@ -33,13 +38,19 @@ config 3_LEVEL_PGTABLES
|
|||||||
N (on x86-64 it's automatically enabled, instead, as it's safe there).
|
N (on x86-64 it's automatically enabled, instead, as it's safe there).
|
||||||
|
|
||||||
config ARCH_HAS_SC_SIGNALS
|
config ARCH_HAS_SC_SIGNALS
|
||||||
bool
|
def_bool !64BIT
|
||||||
default y
|
|
||||||
|
|
||||||
config ARCH_REUSE_HOST_VSYSCALL_AREA
|
config ARCH_REUSE_HOST_VSYSCALL_AREA
|
||||||
bool
|
def_bool !64BIT
|
||||||
default y
|
|
||||||
|
config SMP_BROKEN
|
||||||
|
def_bool 64BIT
|
||||||
|
|
||||||
config GENERIC_HWEIGHT
|
config GENERIC_HWEIGHT
|
||||||
bool
|
def_bool y
|
||||||
default y
|
|
||||||
|
source "arch/um/Kconfig.um"
|
||||||
|
|
||||||
|
endmenu
|
||||||
|
|
||||||
|
source "arch/um/Kconfig.rest"
|
@@ -1,39 +0,0 @@
|
|||||||
|
|
||||||
menu "Host processor type and features"
|
|
||||||
|
|
||||||
source "arch/x86/Kconfig.cpu"
|
|
||||||
|
|
||||||
endmenu
|
|
||||||
|
|
||||||
config UML_X86
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config 64BIT
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
#XXX: this is so in the underlying arch, but it's wrong!!!
|
|
||||||
config RWSEM_GENERIC_SPINLOCK
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config 3_LEVEL_PGTABLES
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config ARCH_HAS_SC_SIGNALS
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_REUSE_HOST_VSYSCALL_AREA
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config SMP_BROKEN
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
config GENERIC_HWEIGHT
|
|
||||||
bool
|
|
||||||
default y
|
|
@@ -18,28 +18,16 @@ core-y += $(ARCH_DIR)/kernel/ \
|
|||||||
$(ARCH_DIR)/drivers/ \
|
$(ARCH_DIR)/drivers/ \
|
||||||
$(ARCH_DIR)/os-$(OS)/
|
$(ARCH_DIR)/os-$(OS)/
|
||||||
|
|
||||||
# Have to precede the include because the included Makefiles reference them.
|
MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas
|
||||||
SYMLINK_HEADERS := archparam.h system.h sigcontext.h processor.h ptrace.h \
|
|
||||||
module.h vm-flags.h elf.h host_ldt.h
|
|
||||||
SYMLINK_HEADERS := $(foreach header,$(SYMLINK_HEADERS),include/asm-um/$(header))
|
|
||||||
|
|
||||||
# XXX: The "os" symlink is only used by arch/um/include/os.h, which includes
|
|
||||||
# ../os/include/file.h
|
|
||||||
#
|
|
||||||
# These are cleaned up during mrproper. Please DO NOT fix it again, this is
|
|
||||||
# the Correct Thing(tm) to do!
|
|
||||||
ARCH_SYMLINKS = include/asm-um/arch $(ARCH_DIR)/include/sysdep $(ARCH_DIR)/os \
|
|
||||||
$(SYMLINK_HEADERS) $(ARCH_DIR)/include/uml-config.h
|
|
||||||
|
|
||||||
MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/skas
|
|
||||||
|
|
||||||
include $(srctree)/$(ARCH_DIR)/Makefile-skas
|
include $(srctree)/$(ARCH_DIR)/Makefile-skas
|
||||||
|
|
||||||
ARCH_INCLUDE := -I$(ARCH_DIR)/include
|
ARCH_INCLUDE := -I$(srctree)/$(ARCH_DIR)/include/shared
|
||||||
|
ARCH_INCLUDE += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH)/shared
|
||||||
ifneq ($(KBUILD_SRC),)
|
ifneq ($(KBUILD_SRC),)
|
||||||
ARCH_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include
|
ARCH_INCLUDE += -I$(ARCH_DIR)/include/shared # for two generated files
|
||||||
endif
|
endif
|
||||||
SYS_DIR := $(ARCH_DIR)/include/sysdep-$(SUBARCH)
|
KBUILD_CPPFLAGS += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH)
|
||||||
|
|
||||||
# -Dvmap=kernel_vmap prevents anything from referencing the libpcap.o symbol so
|
# -Dvmap=kernel_vmap prevents anything from referencing the libpcap.o symbol so
|
||||||
# named - it's a common symbol in libpcap, so we get a binary which crashes.
|
# named - it's a common symbol in libpcap, so we get a binary which crashes.
|
||||||
@@ -65,6 +53,8 @@ include $(srctree)/$(ARCH_DIR)/Makefile-$(SUBARCH)
|
|||||||
#This will adjust *FLAGS accordingly to the platform.
|
#This will adjust *FLAGS accordingly to the platform.
|
||||||
include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
|
include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)
|
||||||
|
|
||||||
|
KBUILD_CPPFLAGS += -I$(srctree)/arch/$(HEADER_ARCH)/include
|
||||||
|
|
||||||
# -Derrno=kernel_errno - This turns all kernel references to errno into
|
# -Derrno=kernel_errno - This turns all kernel references to errno into
|
||||||
# kernel_errno to separate them from the libc errno. This allows -fno-common
|
# kernel_errno to separate them from the libc errno. This allows -fno-common
|
||||||
# in KBUILD_CFLAGS. Otherwise, it would cause ld to complain about the two different
|
# in KBUILD_CFLAGS. Otherwise, it would cause ld to complain about the two different
|
||||||
@@ -93,14 +83,10 @@ define archhelp
|
|||||||
echo ' find in the kernel root.'
|
echo ' find in the kernel root.'
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq ($(KBUILD_SRC),)
|
KBUILD_KCONFIG := arch/um/Kconfig.$(HEADER_ARCH)
|
||||||
$(shell mkdir -p $(ARCH_DIR) && ln -fsn $(srctree)/$(ARCH_DIR)/Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch)
|
|
||||||
else
|
|
||||||
$(shell cd $(ARCH_DIR) && ln -sf Kconfig.$(SUBARCH) Kconfig.arch)
|
|
||||||
endif
|
|
||||||
|
|
||||||
archprepare: $(ARCH_SYMLINKS) $(ARCH_DIR)/include/user_constants.h
|
archprepare: $(ARCH_DIR)/include/shared/user_constants.h
|
||||||
prepare: $(ARCH_DIR)/include/kern_constants.h
|
prepare: $(ARCH_DIR)/include/shared/kern_constants.h
|
||||||
|
|
||||||
LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
|
LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
|
||||||
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib
|
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib
|
||||||
@@ -132,62 +118,19 @@ endef
|
|||||||
|
|
||||||
# When cleaning we don't include .config, so we don't include
|
# When cleaning we don't include .config, so we don't include
|
||||||
# TT or skas makefiles and don't clean skas_ptregs.h.
|
# TT or skas makefiles and don't clean skas_ptregs.h.
|
||||||
CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/include/uml-config.h \
|
CLEAN_FILES += linux x.i gmon.out \
|
||||||
$(ARCH_DIR)/include/user_constants.h \
|
$(ARCH_DIR)/include/shared/user_constants.h \
|
||||||
$(ARCH_DIR)/include/kern_constants.h $(ARCH_DIR)/Kconfig.arch
|
$(ARCH_DIR)/include/shared/kern_constants.h
|
||||||
|
|
||||||
MRPROPER_FILES += $(ARCH_SYMLINKS)
|
|
||||||
|
|
||||||
archclean:
|
archclean:
|
||||||
@find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \
|
@find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \
|
||||||
-o -name '*.gcov' \) -type f -print | xargs rm -f
|
-o -name '*.gcov' \) -type f -print | xargs rm -f
|
||||||
|
|
||||||
$(SYMLINK_HEADERS):
|
$(objtree)/$(ARCH_DIR)/include/shared:
|
||||||
@echo ' SYMLINK $@'
|
|
||||||
ifneq ($(KBUILD_SRC),)
|
|
||||||
$(Q)mkdir -p $(objtree)/include/asm-um
|
|
||||||
$(Q)ln -fsn $(srctree)/include/asm-um/$(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $@
|
|
||||||
else
|
|
||||||
$(Q)cd $(srctree)/$(dir $@) ; \
|
|
||||||
ln -sf $(basename $(notdir $@))-$(SUBARCH)$(suffix $@) $(notdir $@)
|
|
||||||
endif
|
|
||||||
|
|
||||||
include/asm-um/arch:
|
|
||||||
@echo ' SYMLINK $@'
|
|
||||||
ifneq ($(KBUILD_SRC),)
|
|
||||||
$(Q)mkdir -p $(objtree)/include/asm-um
|
|
||||||
$(Q)ln -fsn $(srctree)/include/asm-$(HEADER_ARCH) include/asm-um/arch
|
|
||||||
else
|
|
||||||
$(Q)cd $(srctree)/include/asm-um && ln -fsn ../asm-$(HEADER_ARCH) arch
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(objtree)/$(ARCH_DIR)/include:
|
|
||||||
@echo ' MKDIR $@'
|
@echo ' MKDIR $@'
|
||||||
$(Q)mkdir -p $@
|
$(Q)mkdir -p $@
|
||||||
|
|
||||||
$(ARCH_DIR)/include/sysdep: $(objtree)/$(ARCH_DIR)/include
|
|
||||||
@echo ' SYMLINK $@'
|
|
||||||
ifneq ($(KBUILD_SRC),)
|
|
||||||
$(Q)ln -fsn $(srctree)/$(ARCH_DIR)/include/sysdep-$(SUBARCH) $(ARCH_DIR)/include/sysdep
|
|
||||||
else
|
|
||||||
$(Q)cd $(ARCH_DIR)/include && ln -fsn sysdep-$(SUBARCH) sysdep
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(ARCH_DIR)/os:
|
|
||||||
@echo ' SYMLINK $@'
|
|
||||||
ifneq ($(KBUILD_SRC),)
|
|
||||||
$(Q)ln -fsn $(srctree)/$(ARCH_DIR)/os-$(OS) $(ARCH_DIR)/os
|
|
||||||
else
|
|
||||||
$(Q)cd $(ARCH_DIR) && ln -fsn os-$(OS) os
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Generated files
|
# Generated files
|
||||||
define filechk_umlconfig
|
|
||||||
sed 's/ CONFIG/ UML_CONFIG/'
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(ARCH_DIR)/include/uml-config.h : include/linux/autoconf.h
|
|
||||||
$(call filechk,umlconfig)
|
|
||||||
|
|
||||||
$(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s: FORCE
|
$(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s: FORCE
|
||||||
$(Q)$(MAKE) $(build)=$(ARCH_DIR)/sys-$(SUBARCH) $@
|
$(Q)$(MAKE) $(build)=$(ARCH_DIR)/sys-$(SUBARCH) $@
|
||||||
@@ -205,11 +148,11 @@ define filechk_gen-asm-offsets
|
|||||||
echo ""; )
|
echo ""; )
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(ARCH_DIR)/include/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s
|
$(ARCH_DIR)/include/shared/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s
|
||||||
$(call filechk,gen-asm-offsets)
|
$(call filechk,gen-asm-offsets)
|
||||||
|
|
||||||
$(ARCH_DIR)/include/kern_constants.h: $(objtree)/$(ARCH_DIR)/include
|
$(ARCH_DIR)/include/shared/kern_constants.h: $(objtree)/$(ARCH_DIR)/include/shared
|
||||||
@echo ' SYMLINK $@'
|
@echo ' SYMLINK $@'
|
||||||
$(Q)ln -sf ../../../include/asm-um/asm-offsets.h $@
|
$(Q)ln -sf ../../../../include/asm/asm-offsets.h $@
|
||||||
|
|
||||||
export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH
|
export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH DEV_NULL_PATH
|
||||||
|
@@ -6,3 +6,4 @@
|
|||||||
# To get a definition of F_SETSIG
|
# To get a definition of F_SETSIG
|
||||||
USER_CFLAGS += -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
|
USER_CFLAGS += -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
|
||||||
KBUILD_CFLAGS += -D_LARGEFILE64_SOURCE
|
KBUILD_CFLAGS += -D_LARGEFILE64_SOURCE
|
||||||
|
DEV_NULL_PATH = \"/dev/null\"
|
||||||
|
@@ -62,5 +62,6 @@ obj-$(CONFIG_UML_RANDOM) += random.o
|
|||||||
|
|
||||||
# pcap_user.o must be added explicitly.
|
# pcap_user.o must be added explicitly.
|
||||||
USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o
|
USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o
|
||||||
|
CFLAGS_null.o = -DDEV_NULL=$(DEV_NULL_PATH)
|
||||||
|
|
||||||
include arch/um/scripts/Makefile.rules
|
include arch/um/scripts/Makefile.rules
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
#include <asm/kmap_types.h>
|
#include <asm/kmap_types.h>
|
||||||
#include <asm/archparam.h>
|
#include <asm/archparam.h>
|
||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
#include <linux/threads.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Here we define all the compile-time 'special' virtual
|
* Here we define all the compile-time 'special' virtual
|
@@ -19,7 +19,7 @@
|
|||||||
struct page;
|
struct page;
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#include <asm/vm-flags.h>
|
#include <sysdep/vm-flags.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These are used to make use of C type-checking..
|
* These are used to make use of C type-checking..
|
@@ -47,6 +47,7 @@ extern unsigned long end_iomem;
|
|||||||
|
|
||||||
#define VMALLOC_OFFSET (__va_space)
|
#define VMALLOC_OFFSET (__va_space)
|
||||||
#define VMALLOC_START ((end_iomem + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
#define VMALLOC_START ((end_iomem + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
|
||||||
|
#define PKMAP_BASE ((FIXADDR_START - LAST_PKMAP * PAGE_SIZE) & PMD_MASK)
|
||||||
#ifdef CONFIG_HIGHMEM
|
#ifdef CONFIG_HIGHMEM
|
||||||
# define VMALLOC_END (PKMAP_BASE-2*PAGE_SIZE)
|
# define VMALLOC_END (PKMAP_BASE-2*PAGE_SIZE)
|
||||||
#else
|
#else
|
||||||
@@ -355,4 +356,11 @@ extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr);
|
|||||||
|
|
||||||
#include <asm-generic/pgtable.h>
|
#include <asm-generic/pgtable.h>
|
||||||
|
|
||||||
|
/* Clear a kernel PTE and flush it from the TLB */
|
||||||
|
#define kpte_clear_flush(ptep, vaddr) \
|
||||||
|
do { \
|
||||||
|
pte_clear(&init_mm, (vaddr), (ptep)); \
|
||||||
|
__flush_tlb_one((vaddr)); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
#include "asm/arch/ptrace-abi.h"
|
#include <asm/ptrace-abi.h>
|
||||||
#include <asm/user.h>
|
#include <asm/user.h>
|
||||||
#include "sysdep/ptrace.h"
|
#include "sysdep/ptrace.h"
|
||||||
|
|
@@ -1,19 +1,7 @@
|
|||||||
#ifndef __UM_SYSTEM_GENERIC_H
|
#ifndef __UM_SYSTEM_GENERIC_H
|
||||||
#define __UM_SYSTEM_GENERIC_H
|
#define __UM_SYSTEM_GENERIC_H
|
||||||
|
|
||||||
#include "asm/arch/system.h"
|
#include "sysdep/system.h"
|
||||||
|
|
||||||
#undef switch_to
|
|
||||||
#undef local_irq_save
|
|
||||||
#undef local_irq_restore
|
|
||||||
#undef local_irq_disable
|
|
||||||
#undef local_irq_enable
|
|
||||||
#undef local_save_flags
|
|
||||||
#undef local_irq_restore
|
|
||||||
#undef local_irq_enable
|
|
||||||
#undef local_irq_disable
|
|
||||||
#undef local_irq_save
|
|
||||||
#undef irqs_disabled
|
|
||||||
|
|
||||||
extern void *switch_to(void *prev, void *next, void *last);
|
extern void *switch_to(void *prev, void *next, void *last);
|
||||||
|
|
@@ -6,7 +6,6 @@
|
|||||||
#ifndef __START_H__
|
#ifndef __START_H__
|
||||||
#define __START_H__
|
#define __START_H__
|
||||||
|
|
||||||
#include "uml-config.h"
|
|
||||||
#include "kern_constants.h"
|
#include "kern_constants.h"
|
||||||
|
|
||||||
/*
|
/*
|
@@ -39,3 +39,16 @@ DEFINE(UM_HZ, HZ);
|
|||||||
DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);
|
DEFINE(UM_USEC_PER_SEC, USEC_PER_SEC);
|
||||||
DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
|
DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
|
||||||
DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
|
DEFINE(UM_NSEC_PER_USEC, NSEC_PER_USEC);
|
||||||
|
|
||||||
|
#ifdef CONFIG_PRINTK
|
||||||
|
DEFINE(UML_CONFIG_PRINTK, CONFIG_PRINTK);
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_NO_HZ
|
||||||
|
DEFINE(UML_CONFIG_NO_HZ, CONFIG_NO_HZ);
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_UML_X86
|
||||||
|
DEFINE(UML_CONFIG_UML_X86, CONFIG_UML_X86);
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_64BIT
|
||||||
|
DEFINE(UML_CONFIG_64BIT, CONFIG_64BIT);
|
||||||
|
#endif
|
@@ -9,7 +9,7 @@
|
|||||||
#define __ASM_LDT_H
|
#define __ASM_LDT_H
|
||||||
|
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
#include "asm/host_ldt.h"
|
#include <sysdep/host_ldt.h>
|
||||||
|
|
||||||
extern void ldt_host_info(void);
|
extern void ldt_host_info(void);
|
||||||
|
|
@@ -11,7 +11,6 @@
|
|||||||
#include "longjmp.h"
|
#include "longjmp.h"
|
||||||
#include "mm_id.h"
|
#include "mm_id.h"
|
||||||
#include "sysdep/tls.h"
|
#include "sysdep/tls.h"
|
||||||
#include "../os/include/file.h"
|
|
||||||
|
|
||||||
#define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR))
|
#define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR))
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user