Page MenuHomeFreeBSD

powerpc/pic: Add a PIC_AP_INIT() to set up AP PIC info
ClosedPublic

Authored by jhibbits on Apr 16 2026, 3:24 AM.
Tags
None
Referenced Files
F174383944: D56421.diff
Fri, Oct 2, 8:14 PM
F174381604: D56421.id176839.diff
Fri, Oct 2, 7:55 PM
F174376990: D56421.id175612.diff
Fri, Oct 2, 7:13 PM
Unknown Object (File)
Thu, Oct 1, 12:01 PM
Unknown Object (File)
Thu, Oct 1, 10:12 AM
Unknown Object (File)
Wed, Sep 30, 11:41 PM
Unknown Object (File)
Wed, Sep 30, 7:13 AM
Unknown Object (File)
Mon, Sep 28, 10:31 AM
Subscribers

Details

Summary

pc_cpuid may not match the PIC's idea of a given CPU. Since openpic
has a WHOAMI register, we can use that to get the PIC's idea of the CPU.
This needs to be done on each AP, so add a PIC_AP_INIT device method so
the PIC can perform any AP-specific initialization at AP bootstrap time.

This fixes SMP on e6500, which is still lacking SMT support.

Diff Detail

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