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
F174246294: D56422.diff
Thu, Oct 1, 4:54 PM
F174197541: D56422.id175613.diff
Thu, Oct 1, 7:36 AM
Unknown Object (File)
Wed, Sep 30, 1:03 PM
Unknown Object (File)
Tue, Sep 29, 10:16 PM
Unknown Object (File)
Tue, Sep 29, 7:05 PM
Unknown Object (File)
Tue, Sep 29, 3:57 PM
Unknown Object (File)
Mon, Sep 28, 5:15 AM
Unknown Object (File)
Sat, Sep 26, 8:36 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