Page MenuHomeFreeBSD

powerpc/openpic: Increase the maximum number of IRQs allowed
ClosedPublic

Authored by jhibbits on Apr 16 2026, 3:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 19, 1:09 PM
Unknown Object (File)
Tue, May 19, 9:07 AM
Unknown Object (File)
Tue, May 19, 5:45 AM
Unknown Object (File)
Mon, May 18, 12:20 PM
Unknown Object (File)
Mon, May 18, 12:11 PM
Unknown Object (File)
Sun, May 17, 2:42 AM
Unknown Object (File)
Thu, May 14, 12:33 PM
Unknown Object (File)
Thu, May 14, 7:48 AM
Subscribers

Details

Summary

The Freescale MPIC supports up to 2048 IRQs, but since we only build an
array of 168 interrupts in intr_machdep, clamp the max at 512. The most
any Freescale PowerPC chip actually supports is 452 on the T4240, so 512
is sufficient.

As part of this, increase the vector mask to the full openpic vector
mask, and use this limit as the terminator for the dispatch loop,
instead of a hard-coded 255.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable