From 8bdc41d78b80a6f5dfce4cf53b64da7c39c7e52d Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 26 Sep 2013 19:02:08 +0000 Subject: Clear SYSFAIL upon boot, for real. --- sys/arch/aviion/dev/syscon.c | 3 ++- sys/arch/mvme88k/dev/syscon.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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; -- cgit v1.2.3