]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Convert the x86 RTC driver to use new validated BCD<->timespec conversions.
authorian <ian@FreeBSD.org>
Mon, 15 Jan 2018 16:40:43 +0000 (16:40 +0000)
committerian <ian@FreeBSD.org>
Mon, 15 Jan 2018 16:40:43 +0000 (16:40 +0000)
commit3f5e0fe8f422cbcf092ee1ad453acdb01c560543
tree8551798869cf198af760e3fe78f7a5a27a9a9761
parent3f80ebc5eca1b55efd38a6be05c0d091fc5ded22
Convert the x86 RTC driver to use new validated BCD<->timespec conversions.

New common routines were added to kern/subr_clock.c for converting between
calendrical time expressed in BCD and struct timespec. The new functions
return EINVAL on error, as expected when the clock hardware does not provide
valid time.

PR: 224813
Differential Revision: https://reviews.freebsd.org/D13731 (no reviewers)
sys/x86/isa/atrtc.c