Skip to contentSkip to conversation

pvgrub: value returned by getrtsecs should be BCD

PATCH New Samuel Thibault 1 participant 1 message Dec 1, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pvgrub: value returned by getrtsecs should be BCD

pvgrub: value returned by getrtsecs should be BCD

stubdom/grub/mini-os.c +1 -1
diff -r 4c67985c552e stubdom/grub/mini-os.c
@@ -649,7 +649,7 @@
 {
     struct timeval tv;
     gettimeofday(&tv, NULL);
-    return tv.tv_sec;
+    return tv.tv_sec % 10 + ((tv.tv_sec / 10) % 6) * 0x10;
 }
 
 int currticks (void)