obj-y += pci-dma.o quirks.o i8237.o topology.o kdebugfs.o
obj-y += alternative.o i8253.o pci-nommu.o
obj-y += tsc.o io_delay.o rtc.o
-obj-y += check.o
obj-$(CONFIG_X86_TRAMPOLINE) += trampoline.o
obj-y += process.o
microcode-$(CONFIG_MICROCODE_AMD) += microcode_amd.o
obj-$(CONFIG_MICROCODE) += microcode.o
+obj-$(CONFIG_X86_CHECK_BIOS_CORRUPTION) += check.o
+
###
# 64 bit specific files
ifeq ($(CONFIG_X86_64),y)
* remaining free memory in that area and fill it with a distinct
* pattern.
*/
-#ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION
#define MAX_SCAN_AREAS 8
static int __read_mostly memory_corruption_check = -1;
static int num_scan_areas;
-static int set_corruption_check(char *arg)
+static __init int set_corruption_check(char *arg)
{
char *end;
}
early_param("memory_corruption_check", set_corruption_check);
-static int set_corruption_check_period(char *arg)
+static __init int set_corruption_check_period(char *arg)
{
char *end;
}
early_param("memory_corruption_check_period", set_corruption_check_period);
-static int set_corruption_check_size(char *arg)
+static __init int set_corruption_check_size(char *arg)
{
char *end;
unsigned size;
int i;
int corruption = 0;
- printk("dot\n");
-
if (!memory_corruption_check)
return;
}
}
- WARN(corruption, KERN_ERR "Memory corruption detected in low memory\n");
+ WARN_ONCE(corruption, KERN_ERR "Memory corruption detected in low memory\n");
}
static void check_corruption(struct work_struct *dummy);
}
module_init(start_periodic_check_for_corruption);
-#endif