aboutsummaryrefslogtreecommitdiff
path: root/src/lib/fallback_boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/fallback_boot.c')
-rw-r--r--src/lib/fallback_boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/fallback_boot.c b/src/lib/fallback_boot.c
index 1bddd0a169..fe34e081fb 100644
--- a/src/lib/fallback_boot.c
+++ b/src/lib/fallback_boot.c
@@ -16,7 +16,7 @@ void boot_successful(void)
byte = inb(RTC_PORT(1));
byte &= 0xfe;
- byte |= (byte & 2) >> 1;
+ byte |= (byte & (1 << 1)) >> 1;
/* If we are in normal mode set the boot count to 0 */
if(byte & 1)