HomeFreeBSD

arm64: Fix off-by-one in its_init_cpu_lpi

Description

arm64: Fix off-by-one in its_init_cpu_lpi

The low bits of GICR_PROPBASER are defined as

The number of bits of LPI INTID supported, minus one, by the LPI
Configuration table starting at Physical_Address.

but flsl(1 << n) returns n + 1; use ilog2_long instead.

PR: 285677
Reported by: Julien Grall
Reviewed by: andrew
Sponsored by: Amazon
Differential Revision: https://reviews.freebsd.org/D49542

Details

Provenance
cpercivaAuthored on Thu, Mar 27, 8:23 PM
Reviewer
andrew
Differential Revision
D49542: arm64: Fix off-by-one in its_init_cpu_lpi
Parents
rG269cbe092da3: kern.opts.mk: Remove EFI from riscv BROKEN_OPTIONS
Branches
Unknown
Tags
Unknown