diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2018-01-05 11:10:26 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2018-01-05 11:10:26 +0000 |
commit | 9899216f9f2dd381abe97fa5505d03772afd3c98 (patch) | |
tree | d917f13410da981eaeeb3bf1b859ac6360a8ba44 /sys/kern/subr_prf.c | |
parent | 80d1ac2e8fed8564a94137d5b6da74b88f64d5b7 (diff) |
Show uvm_fault and trace when typing show panic on a page fault'd kernel
Currently there is only support for amd64, if this change settles
I will add support for the rest of the architectures.
OK kettenis@.
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index bb527c5ba15..3572e809d09 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.92 2017/12/30 20:47:00 guenther Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.93 2018/01/05 11:10:25 pirofti Exp $ */ /* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */ /*- @@ -99,6 +99,7 @@ struct mutex kprintf_mutex = extern int log_open; /* subr_log: is /dev/klog open? */ const char *panicstr; /* arg to first call to panic (used as a flag to indicate that panic has already been called). */ +const char *faultstr; /* page fault string */ #ifdef DDB /* * Enter ddb on panic. |