HomeFreeBSD

Make resettodr_lock accessible outside subr_rtc.c. Protect

Description

Make resettodr_lock accessible outside subr_rtc.c. Protect
CLOCK_GETTIME() with the lock.

Now all time-related accesses to the CMOS for RTC should be under the
lock. This is needed to allow upcoming EFI Runtime Services support
to provide required execution environment for the firmware calls.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on
Parents
rS306088: Add amd64 functions to load/store GDT register, store IDT and TR registers.
Branches
Unknown
Tags
Unknown