amd64: lapic_timer_trigger: disable interrupts while configuring timer
authorcheloha <cheloha@openbsd.org>
Tue, 31 Jan 2023 19:11:47 +0000 (19:11 +0000)
committercheloha <cheloha@openbsd.org>
Tue, 31 Jan 2023 19:11:47 +0000 (19:11 +0000)
commit18dee2f3901782275c4203a1bfe51c1532468716
tree8c0a098e94a689ba8fb43ab258c63d92ca3887c3
parent2ced3cdb7ea4926522bdbcc03a25f5eab885f913
amd64: lapic_timer_trigger: disable interrupts while configuring timer

lapic_timer_oneshot() does three writes.  We need to disable
interrupts to ensure the timer lands in a valid state.

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