freebsd-skq/sys/boot/arm
imp fdf75b9020 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'
issue.

This lets me type at the boot2 prompt again!  Woo Hoo!

Bogusness noticed by: tisco
Pointy Hat to: That silly imp guy
2007-03-28 22:40:37 +00:00
..
at91 RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable for 2007-03-28 22:40:37 +00:00
Makefile Don't descend into at91 until we sort out the boot loader issues more generally 2006-10-23 00:05:28 +00:00