- Minor mod to reset16.inc to work with newer binutils hopefully this works with...
[coreboot.git] / src / pc80 / mc146818rtc_early.c
index 1d268f048282a5f482a37ab150fdb1ba09ba3ba3..96f8f5d0a417638dd73aba876db738526a9a8a26 100644 (file)
@@ -1,6 +1,13 @@
 #include <pc80/mc146818rtc.h>
 #include <part/fallback_boot.h>
 
+#ifndef MAX_REBOOT_CNT
+#error "MAX_REBOOT_CNT not defined"
+#endif
+#if  MAX_REBOOT_CNT > 15
+#error "MAX_REBOOT_CNT too high"
+#endif
+
 static unsigned char cmos_read(unsigned char addr)
 {
        outb(addr, RTC_BASE_PORT + 0);