From fd0f51b3f1619b0808c7209b288569442afb613c Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 8 May 1996 08:28:17 +0000 Subject: [PATCH] don't mix this stuff with mashed potatoes. avoid panic at reboot. --- sys/arch/pc532/pc532/machdep.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/arch/pc532/pc532/machdep.c b/sys/arch/pc532/pc532/machdep.c index 09d9d43eae6..4cf8919207c 100644 --- a/sys/arch/pc532/pc532/machdep.c +++ b/sys/arch/pc532/pc532/machdep.c @@ -652,6 +652,11 @@ boot(howto) } boothowto = howto; if ((howto&RB_NOSYNC) == 0 && waittime < 0) { + extern struct proc proc0; + /* defeat against panic on sync XXX */ + if (curproc == NULL) + curproc = proc0; + waittime = 0; vfs_shutdown(); /* -- 2.20.1