i386: lapic_timer_trigger: disable interrupts around lapic_timer_oneshot()
authorcheloha <cheloha@openbsd.org>
Thu, 9 Feb 2023 01:41:15 +0000 (01:41 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 9 Feb 2023 01:41:15 +0000 (01:41 +0000)
commit7ef8dd0b759dda66652c48273961c5405a360b59
tree6257ea372b0551c45ac1eac362a2ae8770d5a1d8
parent2eafc8b460afa5d8478985018cd4ba419c20956f
i386: lapic_timer_trigger: disable interrupts around lapic_timer_oneshot()

lapic_timer_oneshot() is not atomic.  We need to disable interrupts
when calling it to ensure the timer reaches a valid state.

Link: https://marc.info/?l=openbsd-tech&m=167482851403841&w=2
ok mlarkin@
sys/arch/i386/i386/lapic.c