Page MenuHomeFreeBSD

riscv: handle debug.debugger_on_trap for fatal page faults
ClosedPublic

Authored by mhorne on Dec 10 2020, 3:08 PM.
Tags
None
Referenced Files
F150984312: D27534.id80517.diff
Sun, Apr 5, 7:37 AM
Unknown Object (File)
Sat, Apr 4, 6:32 AM
Unknown Object (File)
Fri, Apr 3, 6:34 AM
Unknown Object (File)
Mon, Mar 30, 5:41 AM
Unknown Object (File)
Tue, Mar 17, 3:47 AM
Unknown Object (File)
Tue, Mar 17, 3:40 AM
Unknown Object (File)
Tue, Mar 10, 1:13 AM
Unknown Object (File)
Mar 5 2026, 9:35 AM
Subscribers

Details

Summary

Allows recovery or diagnosis of a fatal page fault before panicking the
system.

Test Plan

Setting debug.debugger_on_trap=1 and invoking an artificial NULL-dereference enters ddb.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35296
Build 32229: arc lint + arc unit

Event Timeline

I believe this matches what other platforms do for this sysctl?

This revision is now accepted and ready to land.Dec 10 2020, 9:07 PM
In D27534#615888, @jhb wrote:

I believe this matches what other platforms do for this sysctl?

Certainly looks the same as arm64.

In D27534#615888, @jhb wrote:

I believe this matches what other platforms do for this sysctl?

Yep. With D27535 they should all behave consistently.