Fixed case where the screen was cleared during a panic
authorJohn Hodge <[email protected]>
Wed, 21 Apr 2010 13:50:07 +0000 (21:50 +0800)
committerJohn Hodge <[email protected]>
Wed, 21 Apr 2010 13:50:07 +0000 (21:50 +0800)
Kernel/Makefile.BuildNum
Kernel/arch/x86/kpanic.c

index 99e449b..1feb3bd 100644 (file)
@@ -1 +1 @@
-BUILD_NUM = 1959
+BUILD_NUM = 1960
index 865b0d3..1972fd3 100644 (file)
@@ -59,6 +59,9 @@ void KernelPanic_SetMode()
 {
         int    i;
        
+       // Some routines call this function twice, let's avoid that, shall we?
+       if( giKP_Pos )  return ;
+       
        // Restore VGA 0xB8000 text mode
        #if 1
        for( i = 0; i < NUM_REGVALUES; i++ )

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