9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za
To: 9fans@cse.psu.edu
Subject: [9fans] Floppy driver
Date: Mon, 21 May 2001 06:49:35 +0200	[thread overview]
Message-ID: <200105210447.GAA29394@chuckle.iba.co.za> (raw)

The following code:

print ("floppyrevive(%d): %lux - %lux\n", ++x, &fl, fl.d);
		/* reset controller and turn all motors off */
		splhi();
		fl.ncmd = 1;
		fl.cmd[0] = 0;
		outb(Pdor, 0);
		delay(10);
		outb(Pdor, Fintena|Fena);
		delay(10);
		spllo();
print ("floppyrevive(%d): %lux - %lux\n", ++x, &fl, fl.d);

from /sys/src/boot/pc/devfloppy.c:/^floppyrevive (I seem to recall)
reveals that fl.d changes value from a valid address to 0xffffffff.

Now, "fl" is the FController structure, defined in ..../devfloppy.h
(and in devfloppy.c, I removed the second declaration) and I really
cannot figure how one (or more) fields within that structure could
be affected by the operations between.

Also, this only occurs on an old 386/387 platform, with an add-on
ATA and floppy controller.  I have not seen the symptom on the
Pentium I first experimented with.  The symptom itself is obscure:
from trap.c: "exception/interrupt 12".

Clues, anyone?

++L


                 reply	other threads:[~2001-05-21  4:49 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=200105210447.GAA29394@chuckle.iba.co.za \
    --to=lucio@proxima.alt.za \
    --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).