From f22b0dcc295cee9cf6c92f941491bf4ab3f9f65c Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 8 May 1996 01:43:18 +0000 Subject: [PATCH] fix the panic at reboot. --- sys/arch/hp300/hp300/machdep.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index 061afa4d7b0..216486eeafb 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1141,6 +1141,10 @@ boot(howto) boothowto = howto; if ((howto & RB_NOSYNC) == 0 && waittime < 0) { + extern struct proc proc0; + /* make panic at reboot go away */ + if (curproc == NULL) + curproc = &proc0; waittime = 0; vfs_shutdown(); /* -- 2.20.1