From: John Hodge Date: Wed, 25 Dec 2013 00:39:00 +0000 (+0800) Subject: Kernel/x86 - #if'd out kernel panic clear (can't assume B8000 now) X-Git-Tag: rel0.15~47 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7cb0880c700b1acaf10d33e9b15dccaff1793a5c;p=tpg%2Facess2.git Kernel/x86 - #if'd out kernel panic clear (can't assume B8000 now) --- diff --git a/KernelLand/Kernel/arch/x86/kpanic.c b/KernelLand/Kernel/arch/x86/kpanic.c index bf18aa87..3adf8d56 100644 --- a/KernelLand/Kernel/arch/x86/kpanic.c +++ b/KernelLand/Kernel/arch/x86/kpanic.c @@ -112,6 +112,7 @@ void KernelPanic_SetMode(void) } #endif + #if ENABLE_KPANIC_MODE // Clear Screen for( i = 0; i < 80*25; i++ ) { @@ -124,10 +125,12 @@ void KernelPanic_SetMode(void) __asm__ __volatile__ ("mov %%ebp, %0" : "=r" (ebp)); Error_Backtrace(eip, ebp); } + #endif } void KernelPanic_PutChar(char Ch) { + #if ENABLE_KPANIC_MODE if( giKP_Pos > 80*25 ) return ; switch(Ch) { @@ -159,4 +162,5 @@ void KernelPanic_PutChar(char Ch) VT_int_PutString(gpVT_CurTerm, s); } #endif + #endif // ENABLE_KPANIC_MODE }