VESA - Debugging issue on VIA S3 BIOS
[tpg/acess2.git] / KernelLand / Kernel / arch / x86 / kpanic.c
index 9300c69..bf18aa8 100644 (file)
@@ -78,6 +78,8 @@ const struct {
 void KernelPanic_SetMode(void)
 {
         int    i;
+
+       __asm__ __volatile__ ("cli");   // Stop the processor!
        
        // This function is called by Panic(), but MM_PageFault and the
        // CPU exception handers also call it, so let's not clear the screen
@@ -85,7 +87,7 @@ void KernelPanic_SetMode(void)
        if( giKP_Pos )  return ;
        
        // Restore VGA 0xB8000 text mode
-       #if 1
+       #if 0
        for( i = 0; i < NUM_REGVALUES; i++ )
        {
                // Reset Flip-Flop
@@ -151,4 +153,10 @@ void KernelPanic_PutChar(char Ch)
                giKP_Pos ++;
                break;
        }
+       #if 0
+       {
+               char    s[2] = {Ch,0};
+               VT_int_PutString(gpVT_CurTerm, s);
+       }
+       #endif
 }

UCC git Repository :: git.ucc.asn.au