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)
Thu, Jul 23, 7:33 AM
Unknown Object (File)
Mon, Jul 20, 4:58 PM
Unknown Object (File)
Wed, Jul 15, 5:42 PM
Unknown Object (File)
Wed, Jul 15, 7:17 AM
Unknown Object (File)
Wed, Jul 15, 7:17 AM
Unknown Object (File)
Tue, Jul 14, 8:33 PM
Unknown Object (File)
Fri, Jul 3, 12:02 PM
Unknown Object (File)
Jun 22 2026, 3:52 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