Page MenuHomeFreeBSD

[PowerPC] Fix programmer's switch driver and add to GENERIC
ClosedPublic

Authored by bdragon on Mar 8 2021, 7:45 PM.

Details

Summary

Older G4 and G3 models have a programmer's switch that can be used to
generate an interrupt to drop into the debugger.

This code hadn't been tested for a long time. It had been broken back
in 2005 in r153050.

Repair and modernize the code and add it to GENERIC.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

sys/powerpc/powermac/pswitch.c
50–52

do you need sc_dev? I don't see you using it anywhere.

This revision was not accepted when it landed; it landed in state Needs Review.Apr 5 2021, 5:10 PM
This revision was automatically updated to reflect the committed changes.