]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[PATCH] CONFIG_IA32
authorBrian Gerst <bgerst@didntduck.org>
Sun, 30 Oct 2005 22:59:20 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:10 +0000 (17:37 -0800)
Add CONFIG_X86_32 for i386.  This allows selecting options that only apply
to 32-bit systems.

(X86 && !X86_64) becomes X86_32
(X86 ||  X86_64) becomes X86

Signed-off-by: Brian Gerst <bgerst@didntduck.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
15 files changed:
arch/i386/Kconfig
drivers/char/Kconfig
drivers/char/agp/Kconfig
drivers/char/hangcheck-timer.c
drivers/crypto/Kconfig
drivers/firmware/Kconfig
drivers/input/misc/Kconfig
drivers/pci/hotplug/pciehp_pci.c
drivers/pcmcia/rsrc_nonstatic.c
drivers/video/Kconfig
drivers/video/console/Kconfig
fs/Kconfig
fs/Kconfig.binfmt
include/linux/dmi.h
lib/Kconfig.debug

index d2703cda61ea36db794b75c0e8d6f01a6ca0e048..2e3e8dbcb79f30f369c673661652cbd0442801c2 100644 (file)
@@ -5,7 +5,7 @@
 
 mainmenu "Linux Kernel Configuration"
 
-config X86
+config X86_32
        bool
        default y
        help
@@ -18,6 +18,10 @@ config SEMAPHORE_SLEEPERS
        bool
        default y
 
+config X86
+       bool
+       default y
+
 config MMU
        bool
        default y
index c29365d5b524a5c4d5abd072c1dd7ee458f6cec7..7902c3630681e98d05c43ec5ef6fe8decab7c999 100644 (file)
@@ -661,7 +661,7 @@ config HW_RANDOM
 
 config NVRAM
        tristate "/dev/nvram support"
-       depends on ATARI || X86 || X86_64 || ARM || GENERIC_NVRAM
+       depends on ATARI || X86 || ARM || GENERIC_NVRAM
        ---help---
          If you say Y here and create a character special file /dev/nvram
          with major number 10 and minor number 144 using mknod ("man mknod"),
@@ -985,7 +985,7 @@ config MAX_RAW_DEVS
 
 config HANGCHECK_TIMER
        tristate "Hangcheck timer"
-       depends on X86_64 || X86 || IA64 || PPC64 || ARCH_S390
+       depends on X86 || IA64 || PPC64 || ARCH_S390
        help
          The hangcheck-timer module detects when the system has gone
          out to lunch past a certain margin.  It can reboot the system
index 7f8c1b53b754e095e0f6f401addf3ccb4e4bf4e5..486ed8a11b5921899ef2252759477343723b42f3 100644 (file)
@@ -27,7 +27,7 @@ config AGP
 
 config AGP_ALI
        tristate "ALI chipset support"
-       depends on AGP && X86 && !X86_64
+       depends on AGP && X86_32
        ---help---
          This option gives you AGP support for the GLX component of
          XFree86 4.x on the following ALi chipsets.  The supported chipsets
@@ -45,7 +45,7 @@ config AGP_ALI
 
 config AGP_ATI
        tristate "ATI chipset support"
-       depends on AGP && X86 && !X86_64
+       depends on AGP && X86_32
        ---help---
       This option gives you AGP support for the GLX component of
       XFree86 4.x on the ATI RadeonIGP family of chipsets.
@@ -55,7 +55,7 @@ config AGP_ATI
 
 config AGP_AMD
        tristate "AMD Irongate, 761, and 762 chipset support"
-       depends on AGP && X86 && !X86_64
+       depends on AGP && X86_32
        help
          This option gives you AGP support for the GLX component of
          XFree86 4.x on AMD Irongate, 761, and 762 chipsets.
@@ -91,7 +91,7 @@ config AGP_INTEL
 
 config AGP_NVIDIA
        tristate "NVIDIA nForce/nForce2 chipset support"
-       depends on AGP && X86 && !X86_64
+       depends on AGP && X86_32
        help
          This option gives you AGP support for the GLX component of
          XFree86 4.x on the following NVIDIA chipsets.  The supported chipsets
@@ -99,7 +99,7 @@ config AGP_NVIDIA
 
 config AGP_SIS
        tristate "SiS chipset support"
-       depends on AGP && X86 && !X86_64
+       depends on AGP && X86_32
        help
          This option gives you AGP support for the GLX component of
          XFree86 4.x on Silicon Integrated Systems [SiS] chipsets.
@@ -111,14 +111,14 @@ config AGP_SIS
 
 config AGP_SWORKS
        tristate "Serverworks LE/HE chipset support"
-       depends on AGP && X86 && !X86_64
+       depends on AGP && X86_32
        help
          Say Y here to support the Serverworks AGP card.  See 
          <http://www.serverworks.com/> for product descriptions and images.
 
 config AGP_VIA
        tristate "VIA chipset support"
-       depends on AGP && X86 && !X86_64
+       depends on AGP && X86_32
        help
          This option gives you AGP support for the GLX component of
          XFree86 4.x on VIA MVP3/Apollo Pro chipsets.
@@ -154,7 +154,7 @@ config AGP_UNINORTH
 
 config AGP_EFFICEON
        tristate "Transmeta Efficeon support"
-       depends on AGP && X86 && !X86_64
+       depends on AGP && X86_32
        help
          This option gives you AGP support for the Transmeta Efficeon
          series processors with integrated northbridges.
index a54bc93353af1d62d37ddf96af94d344e1bd60e4..66e53dd450ff251ecb1642dbb0817af2c1131f5d 100644 (file)
@@ -117,7 +117,7 @@ __setup("hcheck_reboot", hangcheck_parse_reboot);
 __setup("hcheck_dump_tasks", hangcheck_parse_dump_tasks);
 #endif /* not MODULE */
 
-#if defined(CONFIG_X86) || defined(CONFIG_X86_64)
+#if defined(CONFIG_X86)
 # define HAVE_MONOTONIC
 # define TIMER_FREQ 1000000000ULL
 #elif defined(CONFIG_ARCH_S390)
index 094835cce321061458f1e6013160ce0f0428ff0d..4263935443cc6801807d991e4cc2a304fa566eba 100644 (file)
@@ -2,7 +2,7 @@ menu "Hardware crypto devices"
 
 config CRYPTO_DEV_PADLOCK
        tristate "Support for VIA PadLock ACE"
-       depends on CRYPTO && X86 && !X86_64
+       depends on CRYPTO && X86_32
        help
          Some VIA processors come with an integrated crypto engine
          (so called VIA PadLock ACE, Advanced Cryptography Engine)
index 327b58e648753013e28026f4fb9f66f4af89edfe..9925de291e3124bffab86871cba0cc26f4b79548 100644 (file)
@@ -70,7 +70,7 @@ config DELL_RBU
 
 config DCDBAS
        tristate "Dell Systems Management Base Driver"
-       depends on X86 || X86_64
+       depends on X86
        default m
        help
          The Dell Systems Management Base Driver provides a sysfs interface
index bb934e6d9636cf87ce6a2cc133c0d886f155a23b..b3eaac1b35b64109b27c475a8b4b818ce35be780 100644 (file)
@@ -14,7 +14,7 @@ if INPUT_MISC
 
 config INPUT_PCSPKR
        tristate "PC Speaker support"
-       depends on ALPHA || X86 || X86_64 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES
+       depends on ALPHA || X86 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES
        help
          Say Y here if you want the standard PC Speaker to be used for
          bells and whistles.
index 33b539b34f7efd8e6f19f72bbd85018d25b247d9..ff17d8e07e94d09df1d197a8d64b18d7ac679c54 100644 (file)
@@ -113,7 +113,7 @@ int pciehp_unconfigure_device(struct pci_func* func)
  */
 int pciehp_set_irq (u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num)
 {
-#if defined(CONFIG_X86) && !defined(CONFIG_X86_IO_APIC) && !defined(CONFIG_X86_64)
+#if defined(CONFIG_X86_32) && !defined(CONFIG_X86_IO_APIC)
        int rc;
        u16 temp_word;
        struct pci_dev fakedev;
index fc87e7e2b6b800e90ab43b9e203836b13afd0ba2..00960a379b9c177b6071d8bf0d76a9b386ae8938 100644 (file)
@@ -779,7 +779,7 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s)
        if (!s->cb_dev || !s->cb_dev->bus)
                return -ENODEV;
 
-#if defined(CONFIG_X86) || defined(CONFIG_X86_64)
+#if defined(CONFIG_X86)
        /* If this is the root bus, the risk of hitting
         * some strange system devices which aren't protected
         * by either ACPI resource tables or properly requested
index 7e297947a2b2e201423bd296295b987b1dd59ef0..7192b770bfb650a7c68ca2b76a735617f78dec72 100644 (file)
@@ -494,7 +494,7 @@ config FB_TGA
 
 config FB_VESA
        bool "VESA VGA graphics support"
-       depends on (FB = y) && (X86 || X86_64)
+       depends on (FB = y) && X86
        select FB_CFB_FILLRECT
        select FB_CFB_COPYAREA
        select FB_CFB_IMAGEBLIT
@@ -712,7 +712,7 @@ config FB_RIVA_DEBUG
 
 config FB_I810
        tristate "Intel 810/815 support (EXPERIMENTAL)"
-       depends on FB && EXPERIMENTAL && PCI && X86 && !X86_64
+       depends on FB && EXPERIMENTAL && PCI && X86_32
        select AGP
        select AGP_INTEL
        select FB_MODE_HELPERS
@@ -761,7 +761,7 @@ config FB_I810_I2C
 
 config FB_INTEL
        tristate "Intel 830M/845G/852GM/855GM/865G support (EXPERIMENTAL)"
-       depends on FB && EXPERIMENTAL && PCI && X86 && !X86_64
+       depends on FB && EXPERIMENTAL && PCI && X86_32
        select AGP
        select AGP_INTEL
        select FB_MODE_HELPERS
index 7e731691e2a914d08c4cb692fc5e689fe550aaea..6a9ae2b3d1aba76a50a76554b5ab7ee81118e31e 100644 (file)
@@ -28,7 +28,7 @@ config VGA_CONSOLE
 
 config VIDEO_SELECT
        bool "Video mode selection support"
-       depends on  (X86 || X86_64) && VGA_CONSOLE
+       depends on  X86 && VGA_CONSOLE
        ---help---
          This enables support for text mode selection on kernel startup. If
          you want to take advantage of some high-resolution text mode your
index 48f5422cb19a942e017aad4e334195d53ab83595..01a295232f75dcd53ab1d5a4998e35b92fc47205 100644 (file)
@@ -810,7 +810,7 @@ config TMPFS
 
 config HUGETLBFS
        bool "HugeTLB file system support"
-       depends X86 || IA64 || PPC64 || SPARC64 || SUPERH || X86_64 || BROKEN
+       depends X86 || IA64 || PPC64 || SPARC64 || SUPERH || BROKEN
 
 config HUGETLB_PAGE
        def_bool HUGETLBFS
index 434c19d076ac040c90845ceef713c03ee71cf907..175b2e8177c13690719ea26e61e6851183430e15 100644 (file)
@@ -57,7 +57,7 @@ config BINFMT_SHARED_FLAT
 
 config BINFMT_AOUT
        tristate "Kernel support for a.out and ECOFF binaries"
-       depends on (X86 && !X86_64) || ALPHA || ARM || M68K || SPARC32
+       depends on X86_32 || ALPHA || ARM || M68K || SPARC32
        ---help---
          A.out (Assembler.OUTput) is a set of formats for libraries and
          executables used in the earliest versions of UNIX.  Linux used
index a415f1d93e9a4f6c6c647dd851bc19be7ef3035b..05f4132622fc7eeea7972e427cadf72ed1ee068b 100644 (file)
@@ -60,7 +60,7 @@ struct dmi_device {
        void *device_data;      /* Type specific data */
 };
 
-#if defined(CONFIG_X86) && !defined(CONFIG_X86_64)
+#if defined(CONFIG_X86_32)
 
 extern int dmi_check_system(struct dmi_system_id *list);
 extern char * dmi_get_system_info(int field);
index 016e89a44ac8defe6c753bd73d6bc74aa4e48e0f..807535e7a1e7205be9c5c1f0f254ea2956243fde 100644 (file)
@@ -128,7 +128,7 @@ config DEBUG_HIGHMEM
 config DEBUG_BUGVERBOSE
        bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED
        depends on BUG
-       depends on ARM || ARM26 || M32R || M68K || SPARC32 || SPARC64 || (X86 && !X86_64) || FRV
+       depends on ARM || ARM26 || M32R || M68K || SPARC32 || SPARC64 || X86_32 || FRV
        default !EMBEDDED
        help
          Say Y here to make BUG() panics output the file name and line number