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)
Wed, Aug 26, 11:20 AM
Unknown Object (File)
Tue, Aug 25, 8:03 PM
Unknown Object (File)
Mon, Aug 24, 7:40 PM
Unknown Object (File)
Sun, Aug 23, 6:53 PM
Unknown Object (File)
Sun, Aug 23, 6:42 PM
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 72248
Build 69131: arc lint + arc unit