9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Installation CD Problems
Date: Sat, 31 Jan 2009 19:31:51 -0500	[thread overview]
Message-ID: <71016867b258370632376bc767b3bc73@quanstro.net> (raw)
In-Reply-To: <4e6ca2050901311609n5ba23364s7c72223b8f809716@mail.gmail.com>

> OK, so I'm just getting caught up on the
> replies here so far.
>
> As far as /dev/sdC0 goes -- BLS is right,
> it was really /dev/sdD0, and I remembered
> incorrectly. That is, the CD ROM Drive is,
> indeed, second IDE master.

i think it's really likely that this change needs
to be move from the kernel into 9load's sdata.c.
but it's pretty hard for me to test.  regardless,
if this change is good enough for the kernel,
it should be good enough for 9load:

diff -c /sys/src/boot/pc-e820/sdata.c /n/sources/plan9/sys/src/boot/pc/
(other stuff)
/sys/src/boot/pc-e820/sdata.c:875,882 - /n/sources/plan9/sys/src/boot/pc//sdata.c:875,881
  	qlock(ctlr);

  	as = ataready(cmdport, ctlport, drive->dev, Bsy|Drq, Drdy, 107*1000);
- 	/* used to test as&Chk as failure too, but some CD readers use that for media change */
- 	if(as < 0){
+ 	if(as < 0 || (as&Chk)){
  		qunlock(ctlr);
  		return -1;
  	}

- erik




  reply	other threads:[~2009-02-01  0:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-31 18:52 Akshat Kumar
2009-01-31 20:05 ` erik quanstrom
2009-01-31 22:02   ` Akshat Kumar
2009-01-31 20:25 ` blstuart
2009-01-31 21:58   ` Akshat Kumar
2009-01-31 22:33   ` erik quanstrom
2009-01-31 22:50     ` Pietro Gagliardi
2009-01-31 22:59       ` erik quanstrom
2009-02-01  0:09         ` Akshat Kumar
2009-02-01  0:31           ` erik quanstrom [this message]
2009-02-01  4:47       ` lucio

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=71016867b258370632376bc767b3bc73@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /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).