aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386')
-rw-r--r--arch/i386/Kconfig2
-rw-r--r--arch/i386/kernel/cpu/common.c3
-rw-r--r--arch/i386/kernel/efi.c3
-rw-r--r--arch/i386/kernel/ldt.c2
-rw-r--r--arch/i386/mach-visws/visws_apic.c2
-rw-r--r--arch/i386/mm/discontig.c3
-rw-r--r--arch/i386/mm/init.c3
-rw-r--r--arch/i386/pci/fixup.c2
8 files changed, 8 insertions, 12 deletions
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig
index af219e5173..8ff1c6fb5a 100644
--- a/arch/i386/Kconfig
+++ b/arch/i386/Kconfig
@@ -682,7 +682,7 @@ config EFI
682 depends on ACPI 682 depends on ACPI
683 default n 683 default n
684 ---help--- 684 ---help---
685 This enables the the kernel to boot on EFI platforms using 685 This enables the kernel to boot on EFI platforms using
686 system configuration information passed to it from the firmware. 686 system configuration information passed to it from the firmware.
687 This also enables the kernel to use any EFI runtime services that are 687 This also enables the kernel to use any EFI runtime services that are
688 available (such as the EFI variable services). 688 available (such as the EFI variable services).
diff --git a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c
index b2f24d57fd..d9f3e3c31f 100644
--- a/arch/i386/kernel/cpu/common.c
+++ b/arch/i386/kernel/cpu/common.c
@@ -669,8 +669,7 @@ old_gdt:
669 */ 669 */
670 atomic_inc(&init_mm.mm_count); 670 atomic_inc(&init_mm.mm_count);
671 current->active_mm = &init_mm; 671 current->active_mm = &init_mm;
672 if (current->mm) 672 BUG_ON(current->mm);
673 BUG();
674 enter_lazy_tlb(&init_mm, current); 673 enter_lazy_tlb(&init_mm, current);
675 674
676 load_esp0(t, thread); 675 load_esp0(t, thread);
diff --git a/arch/i386/kernel/efi.c b/arch/i386/kernel/efi.c
index f943698947..8b40648d0e 100644
--- a/arch/i386/kernel/efi.c
+++ b/arch/i386/kernel/efi.c
@@ -498,8 +498,7 @@ void __init efi_enter_virtual_mode(void)
498 check_range_for_systab(md); 498 check_range_for_systab(md);
499 } 499 }
500 500
501 if (!efi.systab) 501 BUG_ON(!efi.systab);
502 BUG();
503 502
504 status = phys_efi_set_virtual_address_map( 503 status = phys_efi_set_virtual_address_map(
505 memmap.desc_size * memmap.nr_map, 504 memmap.desc_size * memmap.nr_map,
diff --git a/arch/i386/kernel/ldt.c b/arch/i386/kernel/ldt.c
index 983f95707e..445211eb2d 100644
--- a/arch/i386/kernel/ldt.c
+++ b/arch/i386/kernel/ldt.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * linux/kernel/ldt.c 2 * linux/arch/i386/kernel/ldt.c
3 * 3 *
4 * Copyright (C) 1992 Krishna Balasubramanian and Linus Torvalds 4 * Copyright (C) 1992 Krishna Balasubramanian and Linus Torvalds
5 * Copyright (C) 1999 Ingo Molnar <mingo@redhat.com> 5 * Copyright (C) 1999 Ingo Molnar <mingo@redhat.com>
diff --git a/arch/i386/mach-visws/visws_apic.c b/arch/i386/mach-visws/visws_apic.c
index 828522541a..5929f884d7 100644
--- a/arch/i386/mach-visws/visws_apic.c
+++ b/arch/i386/mach-visws/visws_apic.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * linux/arch/i386/mach_visws/visws_apic.c 2 * linux/arch/i386/mach-visws/visws_apic.c
3 * 3 *
4 * Copyright (C) 1999 Bent Hagemark, Ingo Molnar 4 * Copyright (C) 1999 Bent Hagemark, Ingo Molnar
5 * 5 *
diff --git a/arch/i386/mm/discontig.c b/arch/i386/mm/discontig.c
index 51e3739dd2..455597db84 100644
--- a/arch/i386/mm/discontig.c
+++ b/arch/i386/mm/discontig.c
@@ -153,8 +153,7 @@ static void __init find_max_pfn_node(int nid)
153 */ 153 */
154 if (node_start_pfn[nid] > max_pfn) 154 if (node_start_pfn[nid] > max_pfn)
155 node_start_pfn[nid] = max_pfn; 155 node_start_pfn[nid] = max_pfn;
156 if (node_start_pfn[nid] > node_end_pfn[nid]) 156 BUG_ON(node_start_pfn[nid] > node_end_pfn[nid]);
157 BUG();
158} 157}
159 158
160/* 159/*
diff --git a/arch/i386/mm/init.c b/arch/i386/mm/init.c
index 90089c14c2..167416155e 100644
--- a/arch/i386/mm/init.c
+++ b/arch/i386/mm/init.c
@@ -569,8 +569,7 @@ void __init mem_init(void)
569 int bad_ppro; 569 int bad_ppro;
570 570
571#ifdef CONFIG_FLATMEM 571#ifdef CONFIG_FLATMEM
572 if (!mem_map) 572 BUG_ON(!mem_map);
573 BUG();
574#endif 573#endif
575 574
576 bad_ppro = ppro_with_ram_bug(); 575 bad_ppro = ppro_with_ram_bug();
diff --git a/arch/i386/pci/fixup.c b/arch/i386/pci/fixup.c
index 83c3645ccc..b60d7e8689 100644
--- a/arch/i386/pci/fixup.c
+++ b/arch/i386/pci/fixup.c
@@ -393,7 +393,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_video);
393 * We pretend to bring them out of full D3 state, and restore the proper 393 * We pretend to bring them out of full D3 state, and restore the proper
394 * IRQ, PCI cache line size, and BARs, otherwise the device won't function 394 * IRQ, PCI cache line size, and BARs, otherwise the device won't function
395 * properly. In some cases, the device will generate an interrupt on 395 * properly. In some cases, the device will generate an interrupt on
396 * the wrong IRQ line, causing any devices sharing the the line it's 396 * the wrong IRQ line, causing any devices sharing the line it's
397 * *supposed* to use to be disabled by the kernel's IRQ debug code. 397 * *supposed* to use to be disabled by the kernel's IRQ debug code.
398 */ 398 */
399static u16 toshiba_line_size; 399static u16 toshiba_line_size;