From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3E72C707.8090000@powell.name> From: Richard Powell User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 MIME-Version: 1.0 To: 9fans <9fans@cse.psu.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [9fans] Patch to stop a debug message in 9/pc/sdata.c Date: Fri, 14 Mar 2003 22:24:07 -0800 Topicbox-Message-UUID: 80dce976-eacb-11e9-9e20-41e7f4b1d025 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; }