summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/include/bootblock_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86/include/bootblock_common.h b/src/arch/x86/include/bootblock_common.h
index c9674f4a9c..4a128bce68 100644
--- a/src/arch/x86/include/bootblock_common.h
+++ b/src/arch/x86/include/bootblock_common.h
@@ -27,9 +27,11 @@ static void sanitize_cmos(void)
unsigned char *cmos_default = (unsigned char*)walkcbfs("cmos.default");
if (cmos_default) {
int i;
+ cmos_disable_rtc();
for (i = 14; i < 128; i++) {
cmos_write(cmos_default[i], i);
}
+ cmos_enable_rtc();
}
}
}