diff options
author | Brian Gerst <bgerst@didntduck.org> | 2005-10-30 17:59:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 20:37:10 -0500 |
commit | 0d078f6f96809c95c69b99d6605a502b0ac63d3d (patch) | |
tree | 1b4691abab5f96f2aa8a5217a2701f181b41940d | |
parent | 4276d32260662d5401a15a0a46e506fb5c8ab563 (diff) |
[PATCH] CONFIG_IA32
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>
-rw-r--r-- | arch/i386/Kconfig | 6 | ||||
-rw-r--r-- | drivers/char/Kconfig | 4 | ||||
-rw-r--r-- | drivers/char/agp/Kconfig | 16 | ||||
-rw-r--r-- | drivers/char/hangcheck-timer.c | 2 | ||||
-rw-r--r-- | drivers/crypto/Kconfig | 2 | ||||
-rw-r--r-- | drivers/firmware/Kconfig | 2 | ||||
-rw-r--r-- | drivers/input/misc/Kconfig | 2 | ||||
-rw-r--r-- | drivers/pci/hotplug/pciehp_pci.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/rsrc_nonstatic.c | 2 | ||||
-rw-r--r-- | drivers/video/Kconfig | 6 | ||||
-rw-r--r-- | drivers/video/console/Kconfig | 2 | ||||
-rw-r--r-- | fs/Kconfig | 2 | ||||
-rw-r--r-- | fs/Kconfig.binfmt | 2 | ||||
-rw-r--r-- | include/linux/dmi.h | 2 | ||||
-rw-r--r-- | lib/Kconfig.debug | 2 |
15 files changed, 29 insertions, 25 deletions
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig index d2703cda61ea..2e3e8dbcb79f 100644 --- a/arch/i386/Kconfig +++ b/arch/i386/Kconfig | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | mainmenu "Linux Kernel Configuration" | 6 | mainmenu "Linux Kernel Configuration" |
7 | 7 | ||
8 | config X86 | 8 | config X86_32 |
9 | bool | 9 | bool |
10 | default y | 10 | default y |
11 | help | 11 | help |
@@ -18,6 +18,10 @@ config SEMAPHORE_SLEEPERS | |||
18 | bool | 18 | bool |
19 | default y | 19 | default y |
20 | 20 | ||
21 | config X86 | ||
22 | bool | ||
23 | default y | ||
24 | |||
21 | config MMU | 25 | config MMU |
22 | bool | 26 | bool |
23 | default y | 27 | default y |
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index c29365d5b524..7902c3630681 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig | |||
@@ -661,7 +661,7 @@ config HW_RANDOM | |||
661 | 661 | ||
662 | config NVRAM | 662 | config NVRAM |
663 | tristate "/dev/nvram support" | 663 | tristate "/dev/nvram support" |
664 | depends on ATARI || X86 || X86_64 || ARM || GENERIC_NVRAM | 664 | depends on ATARI || X86 || ARM || GENERIC_NVRAM |
665 | ---help--- | 665 | ---help--- |
666 | If you say Y here and create a character special file /dev/nvram | 666 | If you say Y here and create a character special file /dev/nvram |
667 | with major number 10 and minor number 144 using mknod ("man mknod"), | 667 | with major number 10 and minor number 144 using mknod ("man mknod"), |
@@ -985,7 +985,7 @@ config MAX_RAW_DEVS | |||
985 | 985 | ||
986 | config HANGCHECK_TIMER | 986 | config HANGCHECK_TIMER |
987 | tristate "Hangcheck timer" | 987 | tristate "Hangcheck timer" |
988 | depends on X86_64 || X86 || IA64 || PPC64 || ARCH_S390 | 988 | depends on X86 || IA64 || PPC64 || ARCH_S390 |
989 | help | 989 | help |
990 | The hangcheck-timer module detects when the system has gone | 990 | The hangcheck-timer module detects when the system has gone |
991 | out to lunch past a certain margin. It can reboot the system | 991 | out to lunch past a certain margin. It can reboot the system |
diff --git a/drivers/char/agp/Kconfig b/drivers/char/agp/Kconfig index 7f8c1b53b754..486ed8a11b59 100644 --- a/drivers/char/agp/Kconfig +++ b/drivers/char/agp/Kconfig | |||
@@ -27,7 +27,7 @@ config AGP | |||
27 | 27 | ||
28 | config AGP_ALI | 28 | config AGP_ALI |
29 | tristate "ALI chipset support" | 29 | tristate "ALI chipset support" |
30 | depends on AGP && X86 && !X86_64 | 30 | depends on AGP && X86_32 |
31 | ---help--- | 31 | ---help--- |
32 | This option gives you AGP support for the GLX component of | 32 | This option gives you AGP support for the GLX component of |
33 | XFree86 4.x on the following ALi chipsets. The supported chipsets | 33 | XFree86 4.x on the following ALi chipsets. The supported chipsets |
@@ -45,7 +45,7 @@ config AGP_ALI | |||
45 | 45 | ||
46 | config AGP_ATI | 46 | config AGP_ATI |
47 | tristate "ATI chipset support" | 47 | tristate "ATI chipset support" |
48 | depends on AGP && X86 && !X86_64 | 48 | depends on AGP && X86_32 |
49 | ---help--- | 49 | ---help--- |
50 | This option gives you AGP support for the GLX component of | 50 | This option gives you AGP support for the GLX component of |
51 | XFree86 4.x on the ATI RadeonIGP family of chipsets. | 51 | XFree86 4.x on the ATI RadeonIGP family of chipsets. |
@@ -55,7 +55,7 @@ config AGP_ATI | |||
55 | 55 | ||
56 | config AGP_AMD | 56 | config AGP_AMD |
57 | tristate "AMD Irongate, 761, and 762 chipset support" | 57 | tristate "AMD Irongate, 761, and 762 chipset support" |
58 | depends on AGP && X86 && !X86_64 | 58 | depends on AGP && X86_32 |
59 | help | 59 | help |
60 | This option gives you AGP support for the GLX component of | 60 | This option gives you AGP support for the GLX component of |
61 | XFree86 4.x on AMD Irongate, 761, and 762 chipsets. | 61 | XFree86 4.x on AMD Irongate, 761, and 762 chipsets. |
@@ -91,7 +91,7 @@ config AGP_INTEL | |||
91 | 91 | ||
92 | config AGP_NVIDIA | 92 | config AGP_NVIDIA |
93 | tristate "NVIDIA nForce/nForce2 chipset support" | 93 | tristate "NVIDIA nForce/nForce2 chipset support" |
94 | depends on AGP && X86 && !X86_64 | 94 | depends on AGP && X86_32 |
95 | help | 95 | help |
96 | This option gives you AGP support for the GLX component of | 96 | This option gives you AGP support for the GLX component of |
97 | XFree86 4.x on the following NVIDIA chipsets. The supported chipsets | 97 | XFree86 4.x on the following NVIDIA chipsets. The supported chipsets |
@@ -99,7 +99,7 @@ config AGP_NVIDIA | |||
99 | 99 | ||
100 | config AGP_SIS | 100 | config AGP_SIS |
101 | tristate "SiS chipset support" | 101 | tristate "SiS chipset support" |
102 | depends on AGP && X86 && !X86_64 | 102 | depends on AGP && X86_32 |
103 | help | 103 | help |
104 | This option gives you AGP support for the GLX component of | 104 | This option gives you AGP support for the GLX component of |
105 | XFree86 4.x on Silicon Integrated Systems [SiS] chipsets. | 105 | XFree86 4.x on Silicon Integrated Systems [SiS] chipsets. |
@@ -111,14 +111,14 @@ config AGP_SIS | |||
111 | 111 | ||
112 | config AGP_SWORKS | 112 | config AGP_SWORKS |
113 | tristate "Serverworks LE/HE chipset support" | 113 | tristate "Serverworks LE/HE chipset support" |
114 | depends on AGP && X86 && !X86_64 | 114 | depends on AGP && X86_32 |
115 | help | 115 | help |
116 | Say Y here to support the Serverworks AGP card. See | 116 | Say Y here to support the Serverworks AGP card. See |
117 | <http://www.serverworks.com/> for product descriptions and images. | 117 | <http://www.serverworks.com/> for product descriptions and images. |
118 | 118 | ||
119 | config AGP_VIA | 119 | config AGP_VIA |
120 | tristate "VIA chipset support" | 120 | tristate "VIA chipset support" |
121 | depends on AGP && X86 && !X86_64 | 121 | depends on AGP && X86_32 |
122 | help | 122 | help |
123 | This option gives you AGP support for the GLX component of | 123 | This option gives you AGP support for the GLX component of |
124 | XFree86 4.x on VIA MVP3/Apollo Pro chipsets. | 124 | XFree86 4.x on VIA MVP3/Apollo Pro chipsets. |
@@ -154,7 +154,7 @@ config AGP_UNINORTH | |||
154 | 154 | ||
155 | config AGP_EFFICEON | 155 | config AGP_EFFICEON |
156 | tristate "Transmeta Efficeon support" | 156 | tristate "Transmeta Efficeon support" |
157 | depends on AGP && X86 && !X86_64 | 157 | depends on AGP && X86_32 |
158 | help | 158 | help |
159 | This option gives you AGP support for the Transmeta Efficeon | 159 | This option gives you AGP support for the Transmeta Efficeon |
160 | series processors with integrated northbridges. | 160 | series processors with integrated northbridges. |
diff --git a/drivers/char/hangcheck-timer.c b/drivers/char/hangcheck-timer.c index a54bc93353af..66e53dd450ff 100644 --- a/drivers/char/hangcheck-timer.c +++ b/drivers/char/hangcheck-timer.c | |||
@@ -117,7 +117,7 @@ __setup("hcheck_reboot", hangcheck_parse_reboot); | |||
117 | __setup("hcheck_dump_tasks", hangcheck_parse_dump_tasks); | 117 | __setup("hcheck_dump_tasks", hangcheck_parse_dump_tasks); |
118 | #endif /* not MODULE */ | 118 | #endif /* not MODULE */ |
119 | 119 | ||
120 | #if defined(CONFIG_X86) || defined(CONFIG_X86_64) | 120 | #if defined(CONFIG_X86) |
121 | # define HAVE_MONOTONIC | 121 | # define HAVE_MONOTONIC |
122 | # define TIMER_FREQ 1000000000ULL | 122 | # define TIMER_FREQ 1000000000ULL |
123 | #elif defined(CONFIG_ARCH_S390) | 123 | #elif defined(CONFIG_ARCH_S390) |
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 094835cce321..4263935443cc 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig | |||
@@ -2,7 +2,7 @@ menu "Hardware crypto devices" | |||
2 | 2 | ||
3 | config CRYPTO_DEV_PADLOCK | 3 | config CRYPTO_DEV_PADLOCK |
4 | tristate "Support for VIA PadLock ACE" | 4 | tristate "Support for VIA PadLock ACE" |
5 | depends on CRYPTO && X86 && !X86_64 | 5 | depends on CRYPTO && X86_32 |
6 | help | 6 | help |
7 | Some VIA processors come with an integrated crypto engine | 7 | Some VIA processors come with an integrated crypto engine |
8 | (so called VIA PadLock ACE, Advanced Cryptography Engine) | 8 | (so called VIA PadLock ACE, Advanced Cryptography Engine) |
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index 327b58e64875..9925de291e31 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig | |||
@@ -70,7 +70,7 @@ config DELL_RBU | |||
70 | 70 | ||
71 | config DCDBAS | 71 | config DCDBAS |
72 | tristate "Dell Systems Management Base Driver" | 72 | tristate "Dell Systems Management Base Driver" |
73 | depends on X86 || X86_64 | 73 | depends on X86 |
74 | default m | 74 | default m |
75 | help | 75 | help |
76 | The Dell Systems Management Base Driver provides a sysfs interface | 76 | The Dell Systems Management Base Driver provides a sysfs interface |
diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index bb934e6d9636..b3eaac1b35b6 100644 --- a/drivers/input/misc/Kconfig +++ b/drivers/input/misc/Kconfig | |||
@@ -14,7 +14,7 @@ if INPUT_MISC | |||
14 | 14 | ||
15 | config INPUT_PCSPKR | 15 | config INPUT_PCSPKR |
16 | tristate "PC Speaker support" | 16 | tristate "PC Speaker support" |
17 | depends on ALPHA || X86 || X86_64 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES | 17 | depends on ALPHA || X86 || MIPS || PPC_PREP || PPC_CHRP || PPC_PSERIES |
18 | help | 18 | help |
19 | Say Y here if you want the standard PC Speaker to be used for | 19 | Say Y here if you want the standard PC Speaker to be used for |
20 | bells and whistles. | 20 | bells and whistles. |
diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c index 33b539b34f7e..ff17d8e07e94 100644 --- a/drivers/pci/hotplug/pciehp_pci.c +++ b/drivers/pci/hotplug/pciehp_pci.c | |||
@@ -113,7 +113,7 @@ int pciehp_unconfigure_device(struct pci_func* func) | |||
113 | */ | 113 | */ |
114 | int pciehp_set_irq (u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num) | 114 | int pciehp_set_irq (u8 bus_num, u8 dev_num, u8 int_pin, u8 irq_num) |
115 | { | 115 | { |
116 | #if defined(CONFIG_X86) && !defined(CONFIG_X86_IO_APIC) && !defined(CONFIG_X86_64) | 116 | #if defined(CONFIG_X86_32) && !defined(CONFIG_X86_IO_APIC) |
117 | int rc; | 117 | int rc; |
118 | u16 temp_word; | 118 | u16 temp_word; |
119 | struct pci_dev fakedev; | 119 | struct pci_dev fakedev; |
diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c index fc87e7e2b6b8..00960a379b9c 100644 --- a/drivers/pcmcia/rsrc_nonstatic.c +++ b/drivers/pcmcia/rsrc_nonstatic.c | |||
@@ -779,7 +779,7 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s) | |||
779 | if (!s->cb_dev || !s->cb_dev->bus) | 779 | if (!s->cb_dev || !s->cb_dev->bus) |
780 | return -ENODEV; | 780 | return -ENODEV; |
781 | 781 | ||
782 | #if defined(CONFIG_X86) || defined(CONFIG_X86_64) | 782 | #if defined(CONFIG_X86) |
783 | /* If this is the root bus, the risk of hitting | 783 | /* If this is the root bus, the risk of hitting |
784 | * some strange system devices which aren't protected | 784 | * some strange system devices which aren't protected |
785 | * by either ACPI resource tables or properly requested | 785 | * by either ACPI resource tables or properly requested |
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 7e297947a2b2..7192b770bfb6 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig | |||
@@ -494,7 +494,7 @@ config FB_TGA | |||
494 | 494 | ||
495 | config FB_VESA | 495 | config FB_VESA |
496 | bool "VESA VGA graphics support" | 496 | bool "VESA VGA graphics support" |
497 | depends on (FB = y) && (X86 || X86_64) | 497 | depends on (FB = y) && X86 |
498 | select FB_CFB_FILLRECT | 498 | select FB_CFB_FILLRECT |
499 | select FB_CFB_COPYAREA | 499 | select FB_CFB_COPYAREA |
500 | select FB_CFB_IMAGEBLIT | 500 | select FB_CFB_IMAGEBLIT |
@@ -712,7 +712,7 @@ config FB_RIVA_DEBUG | |||
712 | 712 | ||
713 | config FB_I810 | 713 | config FB_I810 |
714 | tristate "Intel 810/815 support (EXPERIMENTAL)" | 714 | tristate "Intel 810/815 support (EXPERIMENTAL)" |
715 | depends on FB && EXPERIMENTAL && PCI && X86 && !X86_64 | 715 | depends on FB && EXPERIMENTAL && PCI && X86_32 |
716 | select AGP | 716 | select AGP |
717 | select AGP_INTEL | 717 | select AGP_INTEL |
718 | select FB_MODE_HELPERS | 718 | select FB_MODE_HELPERS |
@@ -761,7 +761,7 @@ config FB_I810_I2C | |||
761 | 761 | ||
762 | config FB_INTEL | 762 | config FB_INTEL |
763 | tristate "Intel 830M/845G/852GM/855GM/865G support (EXPERIMENTAL)" | 763 | tristate "Intel 830M/845G/852GM/855GM/865G support (EXPERIMENTAL)" |
764 | depends on FB && EXPERIMENTAL && PCI && X86 && !X86_64 | 764 | depends on FB && EXPERIMENTAL && PCI && X86_32 |
765 | select AGP | 765 | select AGP |
766 | select AGP_INTEL | 766 | select AGP_INTEL |
767 | select FB_MODE_HELPERS | 767 | select FB_MODE_HELPERS |
diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig index 7e731691e2a9..6a9ae2b3d1ab 100644 --- a/drivers/video/console/Kconfig +++ b/drivers/video/console/Kconfig | |||
@@ -28,7 +28,7 @@ config VGA_CONSOLE | |||
28 | 28 | ||
29 | config VIDEO_SELECT | 29 | config VIDEO_SELECT |
30 | bool "Video mode selection support" | 30 | bool "Video mode selection support" |
31 | depends on (X86 || X86_64) && VGA_CONSOLE | 31 | depends on X86 && VGA_CONSOLE |
32 | ---help--- | 32 | ---help--- |
33 | This enables support for text mode selection on kernel startup. If | 33 | This enables support for text mode selection on kernel startup. If |
34 | you want to take advantage of some high-resolution text mode your | 34 | you want to take advantage of some high-resolution text mode your |
diff --git a/fs/Kconfig b/fs/Kconfig index 48f5422cb19a..01a295232f75 100644 --- a/fs/Kconfig +++ b/fs/Kconfig | |||
@@ -810,7 +810,7 @@ config TMPFS | |||
810 | 810 | ||
811 | config HUGETLBFS | 811 | config HUGETLBFS |
812 | bool "HugeTLB file system support" | 812 | bool "HugeTLB file system support" |
813 | depends X86 || IA64 || PPC64 || SPARC64 || SUPERH || X86_64 || BROKEN | 813 | depends X86 || IA64 || PPC64 || SPARC64 || SUPERH || BROKEN |
814 | 814 | ||
815 | config HUGETLB_PAGE | 815 | config HUGETLB_PAGE |
816 | def_bool HUGETLBFS | 816 | def_bool HUGETLBFS |
diff --git a/fs/Kconfig.binfmt b/fs/Kconfig.binfmt index 434c19d076ac..175b2e8177c1 100644 --- a/fs/Kconfig.binfmt +++ b/fs/Kconfig.binfmt | |||
@@ -57,7 +57,7 @@ config BINFMT_SHARED_FLAT | |||
57 | 57 | ||
58 | config BINFMT_AOUT | 58 | config BINFMT_AOUT |
59 | tristate "Kernel support for a.out and ECOFF binaries" | 59 | tristate "Kernel support for a.out and ECOFF binaries" |
60 | depends on (X86 && !X86_64) || ALPHA || ARM || M68K || SPARC32 | 60 | depends on X86_32 || ALPHA || ARM || M68K || SPARC32 |
61 | ---help--- | 61 | ---help--- |
62 | A.out (Assembler.OUTput) is a set of formats for libraries and | 62 | A.out (Assembler.OUTput) is a set of formats for libraries and |
63 | executables used in the earliest versions of UNIX. Linux used | 63 | executables used in the earliest versions of UNIX. Linux used |
diff --git a/include/linux/dmi.h b/include/linux/dmi.h index a415f1d93e9a..05f4132622fc 100644 --- a/include/linux/dmi.h +++ b/include/linux/dmi.h | |||
@@ -60,7 +60,7 @@ struct dmi_device { | |||
60 | void *device_data; /* Type specific data */ | 60 | void *device_data; /* Type specific data */ |
61 | }; | 61 | }; |
62 | 62 | ||
63 | #if defined(CONFIG_X86) && !defined(CONFIG_X86_64) | 63 | #if defined(CONFIG_X86_32) |
64 | 64 | ||
65 | extern int dmi_check_system(struct dmi_system_id *list); | 65 | extern int dmi_check_system(struct dmi_system_id *list); |
66 | extern char * dmi_get_system_info(int field); | 66 | extern char * dmi_get_system_info(int field); |
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 016e89a44ac8..807535e7a1e7 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -128,7 +128,7 @@ config DEBUG_HIGHMEM | |||
128 | config DEBUG_BUGVERBOSE | 128 | config DEBUG_BUGVERBOSE |
129 | bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED | 129 | bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED |
130 | depends on BUG | 130 | depends on BUG |
131 | depends on ARM || ARM26 || M32R || M68K || SPARC32 || SPARC64 || (X86 && !X86_64) || FRV | 131 | depends on ARM || ARM26 || M32R || M68K || SPARC32 || SPARC64 || X86_32 || FRV |
132 | default !EMBEDDED | 132 | default !EMBEDDED |
133 | help | 133 | help |
134 | Say Y here to make BUG() panics output the file name and line number | 134 | Say Y here to make BUG() panics output the file name and line number |