Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113351
b: refs/heads/master
c: c885df5
h: refs/heads/master
i:
  113349: 3dce2be
  113347: d334617
  113343: 3ca5859
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Sep 7, 2008
1 parent fca8780 commit 37e96d6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9f077871ce7237e2387fc76542b3b4033cb05e49
refs/heads/master: c885df50f571faf9fd9f395361cfff1b3a16e06e
9 changes: 8 additions & 1 deletion trunk/arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,6 @@ config HIGHPTE

config X86_CHECK_BIOS_CORRUPTION
bool "Check for low memory corruption"
default y
help
Periodically check for memory corruption in low memory, which
is suspected to be caused by BIOS. Even when enabled in the
Expand All @@ -1082,6 +1081,14 @@ config X86_CHECK_BIOS_CORRUPTION
you can use memmap= to prevent the kernel from using that
memory.

config X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK
bool "Set the default setting of memory_corruption_check"
depends on X86_CHECK_BIOS_CORRUPTION
default y
help
Set whether the default state of memory_corruption_check is
on or off.

config MATH_EMULATION
bool
prompt "Math emulation" if X86_32
Expand Down
13 changes: 12 additions & 1 deletion trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ struct x86_quirks *x86_quirks __initdata = &default_x86_quirks;
#ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION
#define MAX_SCAN_AREAS 8

static int __read_mostly memory_corruption_check = 0;
static int __read_mostly memory_corruption_check = -1;

static unsigned __read_mostly corruption_check_size = 64*1024;
static unsigned __read_mostly corruption_check_period = 60; /* seconds */

Expand Down Expand Up @@ -634,6 +635,16 @@ static void __init setup_bios_corruption_check(void)
{
u64 addr = PAGE_SIZE; /* assume first page is reserved anyway */

if (memory_corruption_check == -1) {
memory_corruption_check =
#ifdef CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK
1
#else
0
#endif
;
}

if (corruption_check_size == 0)
memory_corruption_check = 0;

Expand Down

0 comments on commit 37e96d6

Please sign in to comment.