Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154948931
D27534.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
641 B
Referenced Files
None
Subscribers
None
D27534.diff
View Options
Index: head/sys/riscv/riscv/trap.c
===================================================================
--- head/sys/riscv/riscv/trap.c
+++ head/sys/riscv/riscv/trap.c
@@ -179,6 +179,9 @@
vm_offset_t va;
struct proc *p;
int error, sig, ucode;
+#ifdef KDB
+ bool handled;
+#endif
#ifdef KDB
if (kdb_active) {
@@ -250,6 +253,15 @@
fatal:
dump_regs(frame);
+#ifdef KDB
+ if (debugger_on_trap) {
+ kdb_why = KDB_WHY_TRAP;
+ handled = kdb_trap(frame->tf_scause & SCAUSE_CODE, 0, frame);
+ kdb_why = KDB_WHY_UNSET;
+ if (handled)
+ return;
+ }
+#endif
panic("Fatal page fault at %#lx: %#016lx", frame->tf_sepc, stval);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 1, 6:42 AM (7 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32559345
Default Alt Text
D27534.diff (641 B)
Attached To
Mode
D27534: riscv: handle debug.debugger_on_trap for fatal page faults
Attached
Detach File
Event Timeline
Log In to Comment