Skip to content

Commit

Permalink
Merge branch 'x86/um-header' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/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)
  ...
  • Loading branch information
Linus Torvalds committed Oct 23, 2008
2 parents 765426e + 5e1b007 commit 5b34653
Show file tree
Hide file tree
Showing 593 changed files with 1,336 additions and 1,760 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ ifeq ($(config-targets),1)
# KBUILD_DEFCONFIG may point out an alternative default configuration
# used for 'make defconfig'
include $(srctree)/arch/$(SRCARCH)/Makefile
export KBUILD_DEFCONFIG
export KBUILD_DEFCONFIG KBUILD_KCONFIG

config %config: scripts_basic outputmakefile FORCE
$(Q)mkdir -p include/linux include/config
Expand Down
2 changes: 1 addition & 1 deletion arch/ia64/ia32/audit.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <asm-x86/unistd_32.h>
#include "../../x86/include/asm/unistd_32.h"

unsigned ia32_dir_class[] = {
#include <asm-generic/audit_dir_write.h>
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ typedef struct sigaltstack {

#ifdef __KERNEL__
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)
#endif /* __KERNEL__ */

Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#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,
size_t frame_size);
extern void restore_sigmask(sigset_t *set);
Expand Down
77 changes: 77 additions & 0 deletions arch/um/Kconfig.common
Original file line number Diff line number Diff line change
@@ -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 changes: 42 additions & 0 deletions arch/um/Kconfig.rest
Original file line number Diff line number Diff line change
@@ -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"
122 changes: 0 additions & 122 deletions arch/um/Kconfig → arch/um/Kconfig.um
Original file line number Diff line number Diff line change
@@ -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
bool "Force a static link"
default n
Expand All @@ -85,7 +9,6 @@ config STATIC_LINK
Additionally, this option enables using higher memory spaces (up to
2.75G) for UML.

source "arch/um/Kconfig.arch"
source "mm/Kconfig"
source "kernel/time/Kconfig"

Expand Down Expand Up @@ -224,48 +147,3 @@ config KERNEL_STACK_ORDER
This option determines the size of UML kernel stacks. They will
be 1 << order pages. The default is OK unless you're running Valgrind
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"
43 changes: 27 additions & 16 deletions arch/um/Kconfig.i386 → arch/um/Kconfig.x86
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
source "arch/um/Kconfig.common"

menu "UML-specific options"

menu "Host processor type and features"

source "arch/x86/Kconfig.cpu"

endmenu

config UML_X86
def_bool y

config 64BIT
bool
default y
default SUBARCH = "x86_64"

config X86_32
bool
default y
select HAVE_AOUT
def_bool !64BIT
select HAVE_AOUT

config RWSEM_XCHGADD_ALGORITHM
def_bool y
def_bool X86_XADD

config 64BIT
bool
default n
config RWSEM_GENERIC_SPINLOCK
def_bool !X86_XADD

config 3_LEVEL_PGTABLES
bool "Three-level pagetables (EXPERIMENTAL)"
default n
bool "Three-level pagetables (EXPERIMENTAL)" if !64BIT
default 64BIT
depends on EXPERIMENTAL
help
Three-level pagetables will let UML have more than 4G of physical
Expand All @@ -33,13 +38,19 @@ config 3_LEVEL_PGTABLES
N (on x86-64 it's automatically enabled, instead, as it's safe there).

config ARCH_HAS_SC_SIGNALS
bool
default y
def_bool !64BIT

config ARCH_REUSE_HOST_VSYSCALL_AREA
bool
default y
def_bool !64BIT

config SMP_BROKEN
def_bool 64BIT

config GENERIC_HWEIGHT
bool
default y
def_bool y

source "arch/um/Kconfig.um"

endmenu

source "arch/um/Kconfig.rest"
39 changes: 0 additions & 39 deletions arch/um/Kconfig.x86_64

This file was deleted.

Loading

0 comments on commit 5b34653

Please sign in to comment.