From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Second patch to turn off floppy motor(s)
Date: Tue, 7 Oct 2003 09:33:58 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.53.0310070932040.501@chaos> (raw)
For anyone interested.. This has already been discussed-to-death.
--- linux-2.4.22/arch/i386/boot/bootsect.S.orig Tue Oct 7 08:47:06 2003
+++ linux-2.4.22/arch/i386/boot/bootsect.S Tue Oct 7 09:23:35 2003
@@ -396,15 +396,10 @@
# NOTE: Doesn't save %ax or %dx; do it yourself if you need to.
kill_motor:
-#if 1
- xorw %ax, %ax # reset FDC
- xorb %dl, %dl
- int $0x13
-#else
movw $0x3f2, %dx
- xorb %al, %al
- outb %al, %dx
-#endif
+ inb %dx, %al # Get R/W bits
+ andb $0x0f, %al # Save all but motor-on bits
+ outb %al, %dx # Shut off motor
ret
sectors: .word 0
Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.
reply other threads:[~2003-10-07 13:34 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=Pine.LNX.4.53.0310070932040.501@chaos \
--to=root@chaos.analogic.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®