summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_proto.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-03-28 22:40:37 +0000
committerimp <imp@FreeBSD.org>2007-03-28 22:40:37 +0000
commitfdf75b902074d70bcb83a0421e1e7a1ef8f5bed5 (patch)
tree507b2d214cf66e5e5c725d7626f0b447fdd7820e /sys/i386/linux/linux_proto.h
parentfeacfb6fad7a2822ad94c01ac0ad86ac3d17786d (diff)
downloadFreeBSD-src-fdf75b902074d70bcb83a0421e1e7a1ef8f5bed5.zip
FreeBSD-src-fdf75b902074d70bcb83a0421e1e7a1ef8f5bed5.tar.gz
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
Diffstat (limited to 'sys/i386/linux/linux_proto.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud