Article View: comp.bugs.2bsd
Article #35standalone uda bug +FIX
From: Steven M. Schultz
Date: Fri, 29 Sep 1989 18:59
Date: Fri, 29 Sep 1989 18:59
67 lines
2341 bytes
2341 bytes
Subject: standalone uda bug +FIX
Index: sys/pdpstand/ra.c 2.10BSD
Description:
Some small errors in the stand alone RA driver for 2.10.1. Mostly
checking for the result of a call to racmd < 0 which isn't going to work
since it returns a pointer type result and a missing argument in one call.
Thanks for spotting this one Casey.
Repeat-By:
Examination of the source.
Fix:
*** ra.c.old Fri Aug 19 01:29:42 1988
--- ra.c Fri Sep 29 14:41:58 1989
***************
*** 78,84 ****
rd.ra_ca.ca_cmdl = (short)&rd.ra_cmd.m_cmdref;
rd.ra_ca.ca_cmdh = (short)(segflag & 3);
rd.ra_cmd.m_cntflgs = 0;
! if (racmd(M_O_STCON) < 0) {
printf("RD: controller init error, STCON\n");
return(-1);
}
--- 78,84 ----
rd.ra_ca.ca_cmdl = (short)&rd.ra_cmd.m_cmdref;
rd.ra_ca.ca_cmdh = (short)(segflag & 3);
rd.ra_cmd.m_cntflgs = 0;
! if ((int)racmd(M_O_STCON, 0) < 0) {
printf("RD: controller init error, STCON\n");
return(-1);
}
***************
*** 111,117 ****
ramount(io)
register struct iob *io;
{
! if (racmd(M_O_ONLIN, io->i_unit) < 0) {
printf("RD: bring online error, unit=%d\n", io->i_unit & 7);
return(-1);
}
--- 111,117 ----
ramount(io)
register struct iob *io;
{
! if ((int)racmd(M_O_ONLIN, io->i_unit) < 0) {
printf("RD: bring online error, unit=%d\n", io->i_unit & 7);
return(-1);
}
***************
*** 165,171 ****
mp->m_bytecnt = io->i_cc;
mp->m_buf_l = (ushort)io->i_ma;
mp->m_buf_h = segflag & 3;
! if (racmd(func == READ ? M_O_READ : M_O_WRITE, io->i_unit) < 0)
return(-1);
return(io->i_cc);
--- 165,171 ----
mp->m_bytecnt = io->i_cc;
mp->m_buf_l = (ushort)io->i_ma;
mp->m_buf_h = segflag & 3;
! if ((int)racmd(func == READ ? M_O_READ : M_O_WRITE, io->i_unit) < 0)
return(-1);
return(io->i_cc);
Technical Details
Message-ID:
<37440@wlbr.IMSD.CONTEL.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!voder!wlbr!wlv!smsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!apple!voder!wlbr!wlv!sms From: sms@wlv.imsd.contel.com (Steven M. Schultz) Newsgroups: comp.bugs.2bsd Subject: standalone uda bug +FIX Message-ID: <37440@wlbr.IMSD.CONTEL.COM> Date: 29 Sep 89 18:59:03 GMT Sender: news@wlbr.IMSD.CONTEL.COM Reply-To: sms@wlv.imsd.contel.com (Steven M. Schultz) Organization: Contel Federal Systems Lines: 67