Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/lib minor adjustment for compiling with ...



details:   https://anonhg.NetBSD.org/src/rev/d9b06ca331a4
branches:  trunk
changeset: 486031:d9b06ca331a4
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu May 11 16:11:54 2000 +0000

description:
minor adjustment for compiling with IBM_L40

diffstat:

 sys/arch/i386/stand/lib/gatea20.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 99d1220ff9a8 -r d9b06ca331a4 sys/arch/i386/stand/lib/gatea20.c
--- a/sys/arch/i386/stand/lib/gatea20.c Thu May 11 16:05:51 2000 +0000
+++ b/sys/arch/i386/stand/lib/gatea20.c Thu May 11 16:11:54 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gatea20.c,v 1.2 1997/10/29 00:32:49 fvdl Exp $ */
+/*     $NetBSD: gatea20.c,v 1.3 2000/05/11 16:11:54 jdolecek Exp $     */
 
 /* extracted from freebsd:sys/i386/boot/biosboot/io.c */
 
@@ -27,13 +27,15 @@
 /*
  * Gate A20 for high memory
  */
+#ifndef IBM_L40
 static unsigned char   x_20 = KB_A20;
+#endif
 void gateA20()
 {
        __asm("pushfl ; cli");
 #ifdef IBM_L40
        outb(0x92, 0x2);
-#else  IBM_L40
+#else  /* !IBM_L40 */
        while (inb(K_STATUS) & K_IBUF_FUL);
        while (inb(K_STATUS) & K_OBUF_FUL)
                (void)inb(K_RDWR);
@@ -44,6 +46,6 @@
        outb(K_RDWR, x_20);
        delay(100);
        while (inb(K_STATUS) & K_IBUF_FUL);
-#endif IBM_L40
+#endif /* IBM_L40 */
        __asm("popfl");
 }



Home | Main Index | Thread Index | Old Index