* [9fans] Patch to stop a debug message in 9/pc/sdata.c
@ 2003-03-15 6:24 Richard Powell
0 siblings, 0 replies; only message in thread
From: Richard Powell @ 2003-03-15 6:24 UTC (permalink / raw)
To: 9fans
Greetings,
Here is a patch for /sys/src/9/pc/sdata.c to eliminate an anoying "IBsy+" message that appears when I use two ATA drives
at once. I have one drive on each port of a HPT-370 ATA-100 chip. I think the message is a result of the fact that the
chip only uses one IRQ.
Thanks,
Richard
diff -c sdata.c.old sdata.c.bsy
*** sdata.c.old Fri Mar 14 19:19:16 2003
--- sdata.c.new Fri Mar 14 19:19:02 2003
***************
*** 18,23 ****
--- 18,24 ----
DbgPROBE = 0x08, /* trace device probing */
DbgDEBUG = 0x80, /* the current problem... */
DbgINL = 0x100, /* That Inil20+ message we hate */
+ DbgIBSY = 0x200, /* We don't need that IBsy+ message either */
};
#define DEBUG (DbgDEBUG|DbgSTATE)
***************
*** 1553,1559 ****
ilock(ctlr);
if(inb(ctlr->ctlport+As) & Bsy){
iunlock(ctlr);
! if(DEBUG & DbgDEBUG)
print("IBsy+");
return;
}
--- 1554,1560 ----
ilock(ctlr);
if(inb(ctlr->ctlport+As) & Bsy){
iunlock(ctlr);
! if(DEBUG & DbgIBSY)
print("IBsy+");
return;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-15 6:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-15 6:24 [9fans] Patch to stop a debug message in 9/pc/sdata.c Richard Powell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).