cvs commit: src/sys/boot/arm/at91/libat91 at91rm9200_lowlevel.c at91rm9200_lowlevel.h emac.c getc.c

Warner Losh imp at
Wed Mar 28 22:40:37 UTC 2007

imp         2007-03-28 22:40:37 UTC

  FreeBSD src repository

  Modified files:
    sys/boot/arm/at91/libat91 at91rm9200_lowlevel.c 
                              at91rm9200_lowlevel.h emac.c getc.c 
  RTC_TIMR's RTC_SEC field is BCD.  That makes it unsuitable for
  GetSeconds().  Instead, use CRTR register shifted right 15.  This
  gives us a range of 32 seconds we can do for timeout.
  Shift to using == rather than < or > for calculating the timeout,
  since if we can't read the ST_CTRT register twice in a second we have
  even bigger problems to worry about, and == deals with the 'wrap'
  This lets me type at the boot2 prompt again!  Woo Hoo!
  Bogusness noticed by: tisco
  Pointy Hat to: That silly imp guy
  Revision  Changes    Path
  1.5       +1 -0      src/sys/boot/arm/at91/libat91/at91rm9200_lowlevel.c
  1.5       +2 -1      src/sys/boot/arm/at91/libat91/at91rm9200_lowlevel.h
  1.7       +6 -5      src/sys/boot/arm/at91/libat91/emac.c
  1.3       +4 -2      src/sys/boot/arm/at91/libat91/getc.c

More information about the cvs-src mailing list