diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 01:26:33 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-05-08 01:26:33 +0000 |
commit | 28dc451dcab6ae4addf039a6fa2e5bc53ee3ae62 (patch) | |
tree | a4e5e54988d76c6fbddd5b807cd1e6ccb4add970 /sys/arch/alpha | |
parent | 24b8e24000742bf94dc6b691a7936ef1227cfeb9 (diff) |
fix reboot panic.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index 1959c82755c..c15255c21a0 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -770,6 +770,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(); /* |