From: John Hodge Date: Tue, 22 Sep 2009 10:34:30 +0000 (+0800) Subject: Fixed VTerm Cursor handling, improved debug in mm_virt X-Git-Tag: rel0.06~540 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=0c641aba30830a011f7e82aca119c541884d8aab;p=tpg%2Facess2.git Fixed VTerm Cursor handling, improved debug in mm_virt --- diff --git a/Kernel/arch/x86/mm_virt.c b/Kernel/arch/x86/mm_virt.c index cdd071c0..25da7433 100644 --- a/Kernel/arch/x86/mm_virt.c +++ b/Kernel/arch/x86/mm_virt.c @@ -28,8 +28,6 @@ #define TEMP_MAP_ADDR 0xFEFF0000 // Allows 16 "temp" pages #define NUM_TEMP_PAGES 16 -#define USE_COW 1 - #define PF_PRESENT 0x1 #define PF_WRITE 0x2 #define PF_USER 0x4 @@ -392,7 +390,6 @@ Uint MM_Clone() continue; } - #if USE_COW // Refrence old page MM_RefPhys( gaPageTable[i*1024+j] & ~0xFFF ); // Add to new table @@ -402,10 +399,6 @@ Uint MM_Clone() } else gaTmpTable[i*1024+j] = gaPageTable[i*1024+j]; - LOG("gaTmpTable[0x%x] = 0x%x", i*1024+j, gaTmpTable[i*1024+j]); - #else - gaTmpTable[i*1024+j] = MM_DuplicatePage( (i*1024+j)<<12 ) | (gaPageTable[i*1024+j]&7); - #endif } } diff --git a/Kernel/drv/vterm.c b/Kernel/drv/vterm.c index d8c3039a..8e97033a 100644 --- a/Kernel/drv/vterm.c +++ b/Kernel/drv/vterm.c @@ -345,7 +345,7 @@ void VT_int_PutString(tVTerm *Term, Uint8 *Buffer, Uint Count) } // Update cursor - if(Term->Flags & VT_FLAG_HIDECSR) + if( !(Term->Flags & VT_FLAG_HIDECSR) ) { tVideo_IOCtl_Pos pos; pos.x = Term->WritePos % Term->Width;