diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-07 15:27:52 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-07 15:27:52 +0000 |
commit | 121520696ca972f4a2e54108fb16307baa841a0c (patch) | |
tree | 6bf0dce48ecb3a43cf60042d4f25e357e8ce7efa /sys/arch/i386 | |
parent | 560daebef5420cbf3a3dd9d5790ba7f9d03fa819 (diff) |
from NetBSD PR#2124(port-i386):
Juergen Hannken-Illjes: core dump after panic does not work.
fill curproc w/ some reasonable (struct proc *) pointer.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/machdep.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 4cadab7b1b5..bdcd1bcb5bb 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.16 1996/05/07 07:21:46 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.17 1996/05/07 15:27:51 mickey Exp $ */ /* $NetBSD: machdep.c,v 1.200 1996/05/03 19:42:15 christos Exp $ */ /*- @@ -734,6 +734,12 @@ boot(howto) boothowto = howto; if ((howto & RB_NOSYNC) == 0 && waittime < 0) { + extern struct proc proc0; + + /* protect against curproc->p_stats.foo refs in sync() XXX */ + if (curproc == NULL) + curproc = &proc0; + waittime = 0; vfs_shutdown(); /* |