From a4fdae7bd0c8f0dd2b13d207a64a802b10fa0ed5 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 31 Oct 2007 15:55:47 +0000 Subject: for now, workaround MP timeout/splhigh/scsi race at reboot time using a delay. will be revisited. ok art --- sys/arch/amd64/amd64/machdep.c | 4 +++- sys/arch/i386/i386/machdep.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index dc2e00166ec..23b67fde92d 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.63 2007/10/28 10:25:09 martin Exp $ */ +/* $OpenBSD: machdep.c,v 1.64 2007/10/31 15:55:46 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */ /*- @@ -761,6 +761,8 @@ boot(int howto) } } + delay(4*1000000); /* XXX */ + /* Disable interrupts. */ splhigh(); diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 39b623bf62a..0bb993a2149 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.408 2007/09/30 17:50:20 gwk Exp $ */ +/* $OpenBSD: machdep.c,v 1.409 2007/10/31 15:55:44 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -2389,6 +2389,8 @@ boot(int howto) } } + delay(4*1000000); /* XXX */ + /* Disable interrupts. */ splhigh(); -- cgit v1.2.3