[BACK]Return to diag.c CVS log [TXT][DIR] Up to [local] / prex-old / sys / arch / i386 / pc

Diff for /prex-old/sys/arch/i386/pc/diag.c between version 1.1 and 1.1.1.1.2.1

version 1.1, 2008/06/03 10:38:45 version 1.1.1.1.2.1, 2008/08/13 17:12:30
Line 34 
Line 34 
 #include <kernel.h>  #include <kernel.h>
 #include <page.h>  #include <page.h>
 #include <cpu.h>  #include <cpu.h>
   #include <locore.h>
   
 #ifdef DEBUG  #ifdef DEBUG
 #ifdef CONFIG_DIAG_SCREEN  #ifdef CONFIG_DIAG_SCREEN
Line 54 
Line 55 
 {  {
         int i;          int i;
   
         memcpy(vram, vram + screen_x, screen_x * (screen_y - 1) * 2);          memcpy(vram, vram + screen_x, (size_t)(screen_x * (screen_y - 1) * 2));
         for (i = 0; i < screen_x; i++)          for (i = 0; i < screen_x; i++)
                 vram[screen_x * (screen_y - 1) + i] = ' ';                  vram[screen_x * (screen_y - 1) + i] = ' ';
 }  }
Line 65 
Line 66 
         int pos = pos_y * screen_x + pos_x;          int pos = pos_y * screen_x + pos_x;
   
         outb(0x0e, VID_PORT);          outb(0x0e, VID_PORT);
         outb(pos >> 8, VID_PORT + 1);          outb((u_int)pos >> 8, VID_PORT + 1);
   
         outb(0x0f, VID_PORT);          outb(0x0f, VID_PORT);
         outb(pos & 0xff, VID_PORT + 1);          outb((u_int)pos & 0xff, VID_PORT + 1);
 }  }
   
 static void  static void
Line 138 
Line 139 
          * Bochs debug port           * Bochs debug port
          */           */
         if (inb(0xe9) == 0xe9)          if (inb(0xe9) == 0xe9)
                 outb(c, 0xe9);                  outb((u_char)c, 0xe9);
 }  }
 #endif /* CONFIG_DIAG_BOCHS */  #endif /* CONFIG_DIAG_BOCHS */
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.1.1.2.1

CVSweb