X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Fkpanic.c;h=0950be829100f9b4ae2314c112daef078bbbe70e;hb=3764c294f21229bdf700f436fa4884f5e76e0d3a;hp=1972fd3bbbbd0a722328c3f8d52714ba1dc792ba;hpb=4ffd060057b4c41b63ca1b1e2a48bfc7abc44c30;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/kpanic.c b/Kernel/arch/x86/kpanic.c index 1972fd3b..0950be82 100644 --- a/Kernel/arch/x86/kpanic.c +++ b/Kernel/arch/x86/kpanic.c @@ -52,18 +52,25 @@ const struct { }; #define NUM_REGVALUES (sizeof(caRegValues)/sizeof(caRegValues[0])) +// === PROTOTYPES === +void KernelPanic_SetMode(void); +void KernelPanic_PutChar(char Ch); + +// === CODE === /** * \brief Sets the screen mode for a kernel panic */ -void KernelPanic_SetMode() +void KernelPanic_SetMode(void) { int i; - // Some routines call this function twice, let's avoid that, shall we? + // This function is called by Panic(), but MM_PageFault and the + // CPU exception handers also call it, so let's not clear the screen + // twice if( giKP_Pos ) return ; // Restore VGA 0xB8000 text mode - #if 1 + #if 0 for( i = 0; i < NUM_REGVALUES; i++ ) { // Reset Flip-Flop