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
Unknown Object (File)
Wed, Mar 5, 4:42 AM
Unknown Object (File)
Wed, Mar 5, 12:31 AM
Unknown Object (File)
Fri, Feb 28, 11:19 AM
Unknown Object (File)
Fri, Feb 28, 10:14 AM
Unknown Object (File)
Fri, Feb 28, 8:24 AM
Unknown Object (File)
Sat, Feb 22, 2:13 PM
Unknown Object (File)
Feb 4 2025, 1:15 AM
Unknown Object (File)
Jan 29 2025, 10:23 PM
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 Not Applicable
Unit
Tests Not Applicable

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.