diff options
| author | ragge <ragge@NetBSD.org> | 1998-11-05 19:47:20 +0000 |
|---|---|---|
| committer | ragge <ragge@NetBSD.org> | 1998-11-05 19:47:20 +0000 |
| commit | bee167375f9750e00a0ba65ebadbe08998f78c1c (patch) | |
| tree | 0ea420265e388465f276822809be9f6c2945339b /sys | |
| parent | 34678596671cc7addb41b8961ff6b755653081a1 (diff) | |
EGCS fixes + TU81 fix.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/vax/mscp/mscp.c | 3 | ||||
| -rw-r--r-- | sys/arch/vax/mscp/mscp_subr.c | 4 | ||||
| -rw-r--r-- | sys/arch/vax/mscp/mscp_tape.c | 7 |
3 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/vax/mscp/mscp.c b/sys/arch/vax/mscp/mscp.c index b0cc6edd003..af3828b3a56 100644 --- a/sys/arch/vax/mscp/mscp.c +++ b/sys/arch/vax/mscp/mscp.c @@ -1,4 +1,4 @@ -/* $NetBSD: mscp.c,v 1.8 1998/05/21 13:06:24 ragge Exp $ */ +/* $NetBSD: mscp.c,v 1.9 1998/11/05 19:47:20 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. @@ -292,6 +292,7 @@ loop: case M_OP_POS | M_OP_END: case M_OP_WRITM | M_OP_END: + case M_OP_AVAILABLE | M_OP_END: /* * A non-data transfer operation completed. */ diff --git a/sys/arch/vax/mscp/mscp_subr.c b/sys/arch/vax/mscp/mscp_subr.c index f6150cb06b4..d78d92e9e48 100644 --- a/sys/arch/vax/mscp/mscp_subr.c +++ b/sys/arch/vax/mscp/mscp_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: mscp_subr.c,v 1.9 1998/02/08 14:03:58 ragge Exp $ */ +/* $NetBSD: mscp_subr.c,v 1.10 1998/11/05 19:47:20 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. * Copyright (c) 1988 Regents of the University of California. @@ -363,7 +363,7 @@ mscp_init(mi) count = 0; while (count < DELAYTEN) { - if (((volatile)mi->mi_flags & MSC_READY) != 0) + if (((volatile int)mi->mi_flags & MSC_READY) != 0) break; if ((j = *mi->mi_sa) & MP_ERR) goto out; diff --git a/sys/arch/vax/mscp/mscp_tape.c b/sys/arch/vax/mscp/mscp_tape.c index 1958700a6ce..2687b2faed9 100644 --- a/sys/arch/vax/mscp/mscp_tape.c +++ b/sys/arch/vax/mscp/mscp_tape.c @@ -1,4 +1,4 @@ -/* $NetBSD: mscp_tape.c,v 1.10 1998/05/21 13:06:24 ragge Exp $ */ +/* $NetBSD: mscp_tape.c,v 1.11 1998/11/05 19:47:20 ragge Exp $ */ /* * Copyright (c) 1996 Ludd, University of Lule}, Sweden. * All rights reserved. @@ -168,7 +168,7 @@ mt_putonline(mt) struct mscp_softc *mi = (struct mscp_softc *)mt->mt_dev.dv_parent; volatile int i; - (volatile)mt->mt_state = MT_OFFLINE; + (volatile int)mt->mt_state = MT_OFFLINE; mp = mscp_getcp(mi, MSCP_WAIT); mp->mscp_opcode = M_OP_ONLINE; mp->mscp_unit = mt->mt_hwunit; @@ -180,7 +180,7 @@ mt_putonline(mt) if (tsleep(&mt->mt_state, PRIBIO, "mtonline", 240 * hz)) return MSCP_FAILED; - if ((volatile)mt->mt_state != MT_ONLINE) + if ((volatile int)mt->mt_state != MT_ONLINE) return MSCP_FAILED; return MSCP_DONE; @@ -404,6 +404,7 @@ mtioerror(usc, mp, bp) else printf("%s: error %d\n", mt->mt_dev.dv_xname, st); bp->b_flags |= B_ERROR; + bp->b_error = EROFS; } return (MSCP_DONE); |
