From 0c641aba30830a011f7e82aca119c541884d8aab Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 22 Sep 2009 18:34:30 +0800 Subject: [PATCH] Fixed VTerm Cursor handling, improved debug in mm_virt --- Kernel/arch/x86/mm_virt.c | 7 ------- Kernel/drv/vterm.c | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) 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; -- 2.20.1