Hi,

This small patch fixes grub_get_rtc on EFI architecture. If I understood
correctly, one minute is 60000 milliseconds, not 3600.

Alex
Index: ChangeLog
===================================================================
RCS file: /sources/grub/grub2/ChangeLog,v
retrieving revision 1.591
diff -u -p -r1.591 ChangeLog
--- ChangeLog	17 Feb 2008 10:32:02 -0000	1.591
+++ ChangeLog	17 Feb 2008 11:47:50 -0000
@@ -1,3 +1,8 @@
+2008-02-17  Alexandre Boeglin  <[EMAIL PROTECTED]>
+
+	* include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): One minute is 60 * 1000
+	milliseconds.
+
 2008-02-17  Robert Millan  <[EMAIL PROTECTED]>
 
 	* util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
Index: include/grub/efi/time.h
===================================================================
RCS file: /sources/grub/grub2/include/grub/efi/time.h,v
retrieving revision 1.2
diff -u -p -r1.2 time.h
--- include/grub/efi/time.h	21 Jul 2007 23:32:23 -0000	1.2
+++ include/grub/efi/time.h	17 Feb 2008 11:47:50 -0000
@@ -1,6 +1,6 @@
 /*
  *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 2006,2007  Free Software Foundation, Inc.
+ *  Copyright (C) 2006,2007,2008  Free Software Foundation, Inc.
  *
  *  GRUB is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 #include <grub/symbol.h>
 
 /* This is destined to overflow when one minute passes by.  */
-#define GRUB_TICKS_PER_SECOND	((1UL << 31) / 60 / 60 * 2)
+#define GRUB_TICKS_PER_SECOND	((1UL << 31) / 60 / 1000 * 2)
 
 /* Return the real time in ticks.  */
 grub_uint32_t EXPORT_FUNC (grub_get_rtc) (void);
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to