From b920c0ec821e17e9fd7a94ee8e691b1d046756e2 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 8 May 1996 08:28:18 +0000 Subject: don't mix this stuff with mashed potatoes. avoid panic at reboot. --- sys/arch/pc532/pc532/machdep.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/arch/pc532') 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(); /* -- cgit v1.2.3