summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-09-26 19:02:08 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-09-26 19:02:08 +0000
commit8bdc41d78b80a6f5dfce4cf53b64da7c39c7e52d (patch)
tree58a9c5bd1ae20cfdd2f8089eda9454abd1ab11a3 /sys/arch
parent4e8b7fa20e34a91e848f370d38c64569a5c61af4 (diff)
Clear SYSFAIL upon boot, for real.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/aviion/dev/syscon.c3
-rw-r--r--sys/arch/mvme88k/dev/syscon.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/aviion/dev/syscon.c b/sys/arch/aviion/dev/syscon.c
index 87b38f084f4..1e5ffe76bfa 100644
--- a/sys/arch/aviion/dev/syscon.c
+++ b/sys/arch/aviion/dev/syscon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscon.c,v 1.7 2013/09/16 16:30:51 miod Exp $ */
+/* $OpenBSD: syscon.c,v 1.8 2013/09/26 19:02:06 miod Exp $ */
/*
* Copyright (c) 2007 Miodrag Vallat.
*
@@ -102,6 +102,7 @@ sysconattach(struct device *parent, struct device *self, void *args)
* Clear SYSFAIL if lit.
*/
*(volatile u_int32_t *)AV_UCSR |= UCSR_DRVSFBIT;
+ *(volatile u_int32_t *)AV_CLRINT = ISTATE_SYSFAIL;
sc->sc_abih.ih_fn = sysconabort;
sc->sc_abih.ih_arg = 0;
diff --git a/sys/arch/mvme88k/dev/syscon.c b/sys/arch/mvme88k/dev/syscon.c
index 3c207998356..27ace053c6b 100644
--- a/sys/arch/mvme88k/dev/syscon.c
+++ b/sys/arch/mvme88k/dev/syscon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscon.c,v 1.30 2013/05/17 22:46:27 miod Exp $ */
+/* $OpenBSD: syscon.c,v 1.31 2013/09/26 19:02:07 miod Exp $ */
/*
* Copyright (c) 1999 Steve Murphree, Jr.
* All rights reserved.
@@ -86,6 +86,7 @@ sysconattach(struct device *parent, struct device *self, void *args)
* Clear SYSFAIL if lit.
*/
*(volatile u_int32_t *)MVME188_UCSR |= UCSR_DRVSFBIT;
+ *(volatile u_int32_t *)MVME188_CLRINT = ISTATE_SYSFAIL;
sc->sc_abih.ih_fn = sysconabort;
sc->sc_abih.ih_arg = 0;