diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-24 20:45:27 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-08-24 20:45:27 +0000 |
commit | 61cf6f981ab6e8b46a7dd3a1216a4e25178acf49 (patch) | |
tree | 37b50840227b6aab372905e25df0909c3dff52e7 | |
parent | ba9cc5ffcc4a4acb6a9958df3b6123d7a83baaca (diff) |
Check for a selftest failure after reset in the correct register.
-rw-r--r-- | sys/arch/vax/if/sgec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/if/sgec.c b/sys/arch/vax/if/sgec.c index 3cea80f7648..d7b9fd4d277 100644 --- a/sys/arch/vax/if/sgec.c +++ b/sys/arch/vax/if/sgec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sgec.c,v 1.11 2006/04/16 00:46:32 pascoe Exp $ */ +/* $OpenBSD: sgec.c,v 1.12 2006/08/24 20:45:26 miod Exp $ */ /* $NetBSD: sgec.c,v 1.5 2000/06/04 02:14:14 matt Exp $ */ /* * Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved. @@ -728,7 +728,7 @@ zereset(sc) ZE_WCSR(ZE_CSR6, ZE_NICSR6_RE); DELAY(50000); - if (ZE_RCSR(ZE_CSR6) & ZE_NICSR5_SF) { + if (ZE_RCSR(ZE_CSR5) & ZE_NICSR5_SF) { printf("%s: selftest failed\n", sc->sc_dev.dv_xname); return 1; } @@ -738,7 +738,7 @@ zereset(sc) * WHICH VECTOR TO USE? Take one unused. XXX * Funny way to set vector described in the programmers manual. */ - reg = ZE_NICSR0_IPL14 | sc->sc_intvec | 0x1fff0003; /* SYNC/ASYNC??? */ + reg = ZE_NICSR0_IPL14 | sc->sc_intvec | ZE_NICSR0_MBO; /* SYNC/ASYNC??? */ i = 10; s = splnet(); do { |