summaryrefslogtreecommitdiff
path: root/distrib/sgi
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2019-04-29 15:46:12 +0000
committercheloha <cheloha@cvs.openbsd.org>2019-04-29 15:46:12 +0000
commite024a8a5b234b90892405983af54e8be2a77d43b (patch)
tree65c517df6c02e777b291127370fbdbbefb84df89 /distrib/sgi
parent938d9dede2ccd6fda689fc8aad612477ff5d277a (diff)
MC146818_GETTOD: Check for RTC rollover during read.
Because the RTC is still ticking it is theoretically possible for the second to roll over while we are reading the clock. This is basically impossible on real/practical hardware but is an interesting corner case for e.g. a VM reading an emulated MC146818 during an exit to userspace. This doesn't check *every* register, so if it takes you a multiple of 60 seconds to read the RTC this change won't help you. But you've got bigger problems at that point. "no objections" kettenis@/mlarkin@, "fine idea" deraadt
Diffstat (limited to 'distrib/sgi')
0 files changed, 0 insertions, 0 deletions