Page MenuHomeFreeBSD

Support for booting into kdb on arm platforms.
ClosedPublic

Authored by skibo on Feb 18 2018, 6:51 PM.
Tags
None
Referenced Files
F169924407: D14428.diff
Wed, Sep 2, 11:54 PM
F169863980: D14428.id39713.diff
Wed, Sep 2, 7:52 PM
F169818766: D14428.id39474.diff
Wed, Sep 2, 4:06 PM
F169725759: D14428.diff
Wed, Sep 2, 9:36 AM
Unknown Object (File)
Wed, Sep 2, 5:32 AM
Unknown Object (File)
Wed, Sep 2, 4:16 AM
Unknown Object (File)
Wed, Sep 2, 3:11 AM
Unknown Object (File)
Tue, Sep 1, 2:13 AM
Subscribers

Details

Summary

This diff supports entering kdb early in the boot when the RB_KDB flag is set on arm platforms.

While trying to get this to work, I discovered that machdep_boot.c doesn’t include opt_ddb.h and so the kernel symbols weren’t getting loaded into the debugger early in the boot (see the call to db_fetch_ksymtab() in freebsd_parse_boot_param()). I have never noticed any problems with symbols in kdb before. I wonder how those symbols eventually get loaded and wonder if now I'm calling it twice.

Test Plan

Tested on Zedboard and in qemu.

Diff Detail

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

Event Timeline

ian added a subscriber: ian.

Looks good, and works fine on my wandboard.

This revision is now accepted and ready to land.Feb 25 2018, 6:39 PM
This revision was automatically updated to reflect the committed changes.