[BACK]Return to gatea20.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / i386 / stand / lib

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/i386/stand/lib/gatea20.c between version 1.2 and 1.3

version 1.2, 1997/10/29 00:32:49 version 1.3, 2000/05/11 16:11:54
Line 27 
Line 27 
 /*  /*
  * Gate A20 for high memory   * Gate A20 for high memory
  */   */
   #ifndef IBM_L40
 static unsigned char    x_20 = KB_A20;  static unsigned char    x_20 = KB_A20;
   #endif
 void gateA20()  void gateA20()
 {  {
         __asm("pushfl ; cli");          __asm("pushfl ; cli");
 #ifdef  IBM_L40  #ifdef  IBM_L40
         outb(0x92, 0x2);          outb(0x92, 0x2);
 #else   IBM_L40  #else   /* !IBM_L40 */
         while (inb(K_STATUS) & K_IBUF_FUL);          while (inb(K_STATUS) & K_IBUF_FUL);
         while (inb(K_STATUS) & K_OBUF_FUL)          while (inb(K_STATUS) & K_OBUF_FUL)
                 (void)inb(K_RDWR);                  (void)inb(K_RDWR);
Line 44  void gateA20()
Line 46  void gateA20()
         outb(K_RDWR, x_20);          outb(K_RDWR, x_20);
         delay(100);          delay(100);
         while (inb(K_STATUS) & K_IBUF_FUL);          while (inb(K_STATUS) & K_IBUF_FUL);
 #endif  IBM_L40  #endif  /* IBM_L40 */
         __asm("popfl");          __asm("popfl");
 }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb <webmaster@jp.NetBSD.org>