Date: Wed, 28 Mar 2007 22:40:37 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/boot/arm/at91/libat91 at91rm9200_lowlevel.c at91rm9200_lowlevel.h emac.c getc.c Message-ID: <200703282240.l2SMebbW084017@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 Log: 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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703282240.l2SMebbW084017>