x86: add periodic corruption check

Perodically check for corruption in low phusical memory.  Don't bother
checking at fault time, since it won't show anything useful.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Tento commit je obsažen v:
Hugh Dickins
2008-09-07 01:51:33 -07:00
odevzdal Ingo Molnar
rodič 5394f80f92
revize bb577f980e
5 změnil soubory, kde provedl 22 přidání a 2 odebrání

Zobrazit soubor

@@ -848,8 +848,6 @@ no_context:
* Oops. The kernel tried to access some bad page. We'll have to
* terminate things with extreme prejudice.
*/
check_for_bios_corruption();
#ifdef CONFIG_X86_32
bust_spinlocks(1);
#else

Zobrazit soubor

@@ -907,6 +907,8 @@ void __init mem_init(void)
int codesize, reservedpages, datasize, initsize;
int tmp;
start_periodic_check_for_corruption();
#ifdef CONFIG_FLATMEM
BUG_ON(!mem_map);
#endif

Zobrazit soubor

@@ -769,6 +769,8 @@ void __init mem_init(void)
{
long codesize, reservedpages, datasize, initsize;
start_periodic_check_for_corruption();
pci_iommu_alloc();
/* clear_bss() already clear the empty_zero_page */