diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 08:28:18 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 08:28:18 +0000 |
commit | b920c0ec821e17e9fd7a94ee8e691b1d046756e2 (patch) | |
tree | fcc7ecb04db79e1b0cc4d04521c37529ed1e6886 /sys/arch/pc532 | |
parent | 985178ece487329c0b607dd0f4e03721f448767b (diff) |
don't mix this stuff with mashed potatoes.
avoid panic at reboot.
Diffstat (limited to 'sys/arch/pc532')
-rw-r--r-- | sys/arch/pc532/pc532/machdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
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(); /* |