diff options
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 27ae91288855..ec7e56c1b984 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -587,7 +587,8 @@ struct x86_quirks *x86_quirks __initdata = &default_x86_quirks; | |||
587 | #ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION | 587 | #ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION |
588 | #define MAX_SCAN_AREAS 8 | 588 | #define MAX_SCAN_AREAS 8 |
589 | 589 | ||
590 | static int __read_mostly memory_corruption_check = 0; | 590 | static int __read_mostly memory_corruption_check = -1; |
591 | |||
591 | static unsigned __read_mostly corruption_check_size = 64*1024; | 592 | static unsigned __read_mostly corruption_check_size = 64*1024; |
592 | static unsigned __read_mostly corruption_check_period = 60; /* seconds */ | 593 | static unsigned __read_mostly corruption_check_period = 60; /* seconds */ |
593 | 594 | ||
@@ -634,6 +635,16 @@ static void __init setup_bios_corruption_check(void) | |||
634 | { | 635 | { |
635 | u64 addr = PAGE_SIZE; /* assume first page is reserved anyway */ | 636 | u64 addr = PAGE_SIZE; /* assume first page is reserved anyway */ |
636 | 637 | ||
638 | if (memory_corruption_check == -1) { | ||
639 | memory_corruption_check = | ||
640 | #ifdef CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK | ||
641 | 1 | ||
642 | #else | ||
643 | 0 | ||
644 | #endif | ||
645 | ; | ||
646 | } | ||
647 | |||
637 | if (corruption_check_size == 0) | 648 | if (corruption_check_size == 0) |
638 | memory_corruption_check = 0; | 649 | memory_corruption_check = 0; |
639 | 650 | ||