ia64/xen-unstable

changeset 18848:f39673ce7d6e

pvgrub: value returned by getrtsecs should be BCD

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Dec 01 13:45:46 2008 +0000 (2008-12-01)
parents a00eb6595d3c
children fc5208167bb6
files stubdom/grub/mini-os.c
line diff
     1.1 --- a/stubdom/grub/mini-os.c	Sat Nov 29 09:07:52 2008 +0000
     1.2 +++ b/stubdom/grub/mini-os.c	Mon Dec 01 13:45:46 2008 +0000
     1.3 @@ -649,7 +649,7 @@ int getrtsecs (void)
     1.4  {
     1.5      struct timeval tv;
     1.6      gettimeofday(&tv, NULL);
     1.7 -    return tv.tv_sec;
     1.8 +    return tv.tv_sec % 10 + ((tv.tv_sec / 10) % 6) * 0x10;
     1.9  }
    1.10  
    1.11  int currticks (void)