3 * By John Hodge (thePowersGang)
4 * - x86 Kernel Panic Handler
9 #define FB ((Uint16 *)(KERNEL_BASE|0xB8000))
14 * \brief Sets the screen mode for a kernel panic
16 void KernelPanic_SetMode()
19 // Restore VGA 0xB8000 text mode
22 for( i = 0; i < 80*25; i++ )
28 void KernelPanic_PutChar(char Ch)
30 if( giKP_Pos > 80*25 ) return ;
35 FB[giKP_Pos] &= 0xFF00;
36 FB[giKP_Pos++] |= ' ';
37 } while(giKP_Pos & 7);
43 giKP_Pos -= giKP_Pos % 80;
47 if(' ' <= Ch && Ch < 0x7F)
49 FB[giKP_Pos] &= 0xFF00;