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)
Fri, Aug 14, 7:18 PM
Unknown Object (File)
Fri, Aug 14, 7:14 PM
Unknown Object (File)
Thu, Aug 13, 1:56 AM
Unknown Object (File)
Wed, Aug 12, 1:19 PM
Unknown Object (File)
Tue, Aug 11, 11:34 PM
Unknown Object (File)
Tue, Aug 11, 5:58 PM
Unknown Object (File)
Mon, Aug 10, 7:55 AM
Unknown Object (File)
Sun, Aug 9, 6:48 PM
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