system/boot/debug.c
/*!
    Clear screen and set x/y to top left corner
*/
Clear screen and set x/y to top left corner
Clear screen and set x / y to top left corner
static void KClearScreen(uint16 color) {
  int x, y;
  for (y = 0; y < screen_height; y++) {
    for (x = 0; x < screen_width; x++) {
      *(uint16 *)((vm_addr)screen_buf + y * screen_pitch + x * 2) = color;
    }
  }
  dbg_y = 0;
}
static void KClearScreen ( uint16 color ) { int x , y ; for ( y = 0 ; y < screen_height ; y ++ ) { for ( x = 0 ; x < screen_width ; x ++ ) { * ( uint16 * ) ( ( vm_addr ) screen_buf + y * screen_pitch + x * 2 ) = color ; } } dbg_y = 0 ; }
Clear screen and set x/y to top left corner
Clear screen and set x / y to top left corner