summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-08-22 17:13:23 +0000
committerScott Soule Cheloha <cheloha@cvs.openbsd.org>2023-08-22 17:13:23 +0000
commit83fa6d388c3eec5da9f344ef9571ca741627fe5c (patch)
treea1ec4b082417c2b2bb610ed67809582129aa5ba3 /sys/arch/i386/include
parentb75843297678d490773a5796ee6bcc46ac9c1bda (diff)
i386: i8254_initclocks: set IPL_MPSAFE for clock/rtc IRQs
Setting IPL_MPSAFE for the i8254/mc146818 IRQs appeases a KASSERT in apic_intr_establish() and allows the system to boot via the i8254 path. This makes testing changes to the i8254/mc146818 code much easier on modern hardware without mucking with the GENERIC config. We already set IPL_MPSAFE for these IRQs in the equivalent amd64 code. Now, setting IPL_MPSAFE is a lie: the i8254 and mc146818 IRQs are not MP-safe. However, the lie is harmless because we only reach i8254_initclocks() if (a) there is no APIC at all, or (b) we fail to calibrate the local APIC timer. Thread: https://marc.info/?l=openbsd-tech&m=169258915227321&w=2 ok mlarkin@
Diffstat (limited to 'sys/arch/i386/include')
0 files changed, 0 insertions, 0 deletions