From: Richard Powell <richard@powell.name>
To: 9fans <9fans@cse.psu.edu>
Subject: [9fans] Patch to stop a debug message in 9/pc/sdata.c
Date: Fri, 14 Mar 2003 22:24:07 -0800 [thread overview]
Message-ID: <3E72C707.8090000@powell.name> (raw)
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;
}
reply other threads:[~2003-03-15 6:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E72C707.8090000@powell.name \
--to=richard@powell.name \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).