From 9899216f9f2dd381abe97fa5505d03772afd3c98 Mon Sep 17 00:00:00 2001 From: Paul Irofti Date: Fri, 5 Jan 2018 11:10:26 +0000 Subject: 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@. --- sys/kern/subr_prf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern') 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. -- cgit v1.2.3