summaryrefslogtreecommitdiff
path: root/sys/arch/amiga
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amiga')
-rw-r--r--sys/arch/amiga/amiga/machdep.c9
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;