X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Fkpanic.c;h=798c5139219fc29779746836cc65a4f9a75b0f6a;hb=5beb98670f040b2d4e697e4d8690cd46d2d30cf3;hp=865b0d3baf2dcaa1736e40cfd7d6f9a9e2afc945;hpb=e617614d9e5ca900649d584524eacef768b1f1b9;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/kpanic.c b/Kernel/arch/x86/kpanic.c index 865b0d3b..798c5139 100644 --- a/Kernel/arch/x86/kpanic.c +++ b/Kernel/arch/x86/kpanic.c @@ -59,6 +59,11 @@ void KernelPanic_SetMode() { int i; + // 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 for( i = 0; i < NUM_REGVALUES; i++ )