]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm: generic_timer: use interrupt-names when available
authorKyle Evans <kevans@FreeBSD.org>
Sun, 5 Mar 2023 00:49:04 +0000 (18:49 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 14 Mar 2023 00:30:28 +0000 (19:30 -0500)
commit91b2da13702fb3cfb40a3219feed6e5af651039d
tree74297203618e764765b057f9b8cd89796416bb70
parent370e009188ba90c3290b1479aa06ec98b66e140a
arm: generic_timer: use interrupt-names when available

Offsets for all of thse can be a bit complicated as not all interrupts
will be present, only phys and virt are actually required, and sec-phys
could optionally be specified before phys.  Push idx/name pairs into
a new config struct and maintain the old indices while still getting the
correct timers.

Split fdt/acpi attach out independently and allocate interrupts before
we head into the common attach().  The secure physical timer is also
optional there, so mark it so to avoid erroring out if we run into
problems.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D38911
sys/arm/arm/generic_timer.c