Page MenuHomeFreeBSD

Fix debug trap on Talos II (and all of ppc64?)
ClosedPublic

Authored by bdragon on Jun 23 2018, 12:07 AM.
Referenced Files
Unknown Object (File)
Oct 6 2024, 4:10 AM
Unknown Object (File)
Sep 19 2024, 10:54 PM
Unknown Object (File)
Sep 19 2024, 2:01 AM
Unknown Object (File)
Sep 18 2024, 12:13 PM
Unknown Object (File)
Sep 17 2024, 2:53 AM
Unknown Object (File)
Sep 17 2024, 12:46 AM
Unknown Object (File)
Sep 16 2024, 1:16 AM
Unknown Object (File)
Sep 8 2024, 9:34 PM
Subscribers

Details

Summary

On my Talos II, I was having a lot of trouble with DDB not generating traces correctly.

After a bunch of hunting around, it appears to be because it's using the wrong math in dbtrap to get the new SP.

As far as I could figure, the code as is was not applying any translation and ending up with the stack pointer set to 0x1300.

I'm not very well versed in POWER assembly, but this diff makes ddb work *significantly* better on my Talos II. I can now do traces, and continue actually works.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bdragon created this object with edit policy "PowerPC (Project)".
bdragon changed the edit policy from "PowerPC (Project)" to "All Users".Jun 23 2018, 12:16 AM

Great work tracking this down!

This revision is now accepted and ready to land.Jun 23 2018, 1:33 AM
This revision was automatically updated to reflect the committed changes.