public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* That horrible hack from hell called A20
@ 2000-12-05 23:30 H. Peter Anvin
  2000-12-06  0:13 ` Linus Torvalds
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: H. Peter Anvin @ 2000-12-05 23:30 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Linus Torvalds, kai

Okay, here is my latest attempt to find a way to toggle A20M# that
genuinely works on all machines -- including Olivettis, IBM Aptivas,
bizarre notebooks, yadda yadda.

The bizarre notebooks with broken SMM code are the ones I really worry
most about... there may very well be NO WAY to support them that actually
works on all machines, because you don't get any kind of feedback that
they are broken.

If you have had A20M# problems with any kernel -- recent or not --
*please* try this patch, against 2.4.0-test12-pre5:

	ftp://ftp.kernel.org/pub/linux/kernel/people/hpa/a20-test12-pre5.diff 

--- arch/i386/boot/setup.S.12p5 Tue Dec  5 15:19:10 2000
+++ arch/i386/boot/setup.S      Tue Dec  5 15:22:13 2000
@@ -636,6 +636,7 @@
 # First, try the "fast A20 gate".
 #
        inb     $0x92,%al
+       movb    %al,%dl
        orb     $0x02,%al                       # Fast A20 on
        andb    $0xfe,%al                       # Don't reset CPU!
        outb    %al,$0x92
@@ -648,9 +649,17 @@
 # did the trick and stop its probing at that stage; but subsequent ones
 # must not do so.
 #
+       pushw   %dx
        movb    $0x01,%dl                       # A20-sensitive
        call    empty_8042
+       popw    %dx
        jnz     a20_wait                        # A20 already on?
+
+# If A20 is still off, we need to go to the KBC.  Set the
+# "fast A20 gate" to its original value, since some smartass
+# manufacturers have apparently decided to use A20M# as a GPIO!
+       movb    %dl,%al
+       outb    %al,$0x92
 
        movb    $0xD1, %al                      # command write
        outb    %al, $0x64


-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <fa.mnh2nkv.1kkusq6@ifi.uio.no>]

end of thread, other threads:[~2000-12-08 20:48 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-05 23:30 That horrible hack from hell called A20 H. Peter Anvin
2000-12-06  0:13 ` Linus Torvalds
2000-12-06  0:15   ` H. Peter Anvin
2000-12-06  1:26     ` Alan Cox
2000-12-06  0:21 ` Kai Germaschewski
2000-12-06  0:48   ` Linus Torvalds
2000-12-06 15:53     ` Richard B. Johnson
2000-12-06 18:26       ` H. Peter Anvin
2000-12-06  1:07   ` Linus Torvalds
2000-12-06  1:10     ` H. Peter Anvin
2000-12-06  1:37       ` Linus Torvalds
2000-12-06  1:41         ` Linus Torvalds
2000-12-06  2:38           ` H. Peter Anvin
2000-12-08 10:33       ` Riley Williams
2000-12-06 10:16     ` Kai Germaschewski
2000-12-06  1:25 ` Alan Cox
2000-12-06  2:05   ` H. Peter Anvin
     [not found] <fa.mnh2nkv.1kkusq6@ifi.uio.no>
     [not found] ` <fa.enh20bv.1pkea3o@ifi.uio.no>
2000-12-06 12:43   ` Giacomo Catenazzi
2000-12-06 13:01     ` Alan Cox
2000-12-06 17:37       ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox