diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 01:30:41 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 01:30:41 +0000 |
commit | 43d1714bf2fb6fcc31ac7a9b3627992bdc768420 (patch) | |
tree | a260ffc108ea8bdf6c74540d055677a285809ded /sys/arch/amiga | |
parent | 28dc451dcab6ae4addf039a6fa2e5bc53ee3ae62 (diff) |
fix reboot panic.
Diffstat (limited to 'sys/arch/amiga')
-rw-r--r-- | sys/arch/amiga/amiga/machdep.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/amiga/amiga/machdep.c b/sys/arch/amiga/amiga/machdep.c index 4b3d0fc19e6..09ef853e715 100644 --- a/sys/arch/amiga/amiga/machdep.c +++ b/sys/arch/amiga/amiga/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.9 1996/05/04 13:38:33 niklas Exp $ */ +/* $OpenBSD: machdep.c,v 1.10 1996/05/08 01:30:40 mickey Exp $ */ /* $NetBSD: machdep.c,v 1.65 1996/05/01 09:56:22 veego Exp $ */ /* @@ -977,8 +977,13 @@ bootsync(void) /* * unmount filesystems */ - if (panicstr == 0) + if (panicstr == 0) { + extern struct proc proc0; + if (curproc == NULL) + curproc = &proc0; + vfs_unmountall(); + } for (iter = 0; iter < 20; iter++) { nbusy = 0; |