]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/kernel.h
x86: check for and defend against BIOS memory corruption
[linux-2.6-omap-h63xx.git] / include / linux / kernel.h
index 2651f805ba6d771b9ec1f26078609aebdb198853..8017129e6b631eb67779cb5dec0c9b2b54a5a4ae 100644 (file)
@@ -240,6 +240,18 @@ extern const char *print_tainted(void);
 extern void add_taint(unsigned);
 extern int root_mountflags;
 
+#ifdef CONFIG_X86_CHECK_BIOS_CORRUPTION
+/*
+ * This is obviously not a great place for this, but we want to be
+ * able to scatter it around anywhere in the kernel.
+ */
+void check_for_bios_corruption(void);
+#else
+static inline void check_for_bios_corruption(void)
+{
+}
+#endif
+
 /* Values used for system_state */
 extern enum system_states {
        SYSTEM_BOOTING,