From: John Hodge Date: Sun, 20 Nov 2011 07:20:12 +0000 (+0800) Subject: Kernel - Cleaned up a little (re-enabled cursor too) X-Git-Tag: rel0.14~87 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=955b55e6a5cd1545a8a0b9b46f45fd01d28bd789;p=tpg%2Facess2.git Kernel - Cleaned up a little (re-enabled cursor too) --- diff --git a/Kernel/binary.c b/Kernel/binary.c index c676e55c..20da5c4e 100644 --- a/Kernel/binary.c +++ b/Kernel/binary.c @@ -452,8 +452,6 @@ tBinary *Binary_DoLoad(tMount MountID, tInode Inode, const char *Path) break; } - LOG("pBinary = %p", pBinary); - // Close File VFS_Close(fp); @@ -465,6 +463,8 @@ tBinary *Binary_DoLoad(tMount MountID, tInode Inode, const char *Path) return NULL; } + LOG("pBinary = %p", pBinary); + // Error Check if(pBinary == NULL) { LEAVE('n'); diff --git a/Kernel/drv/vterm.c b/Kernel/drv/vterm.c index 9488b3ea..05d8090a 100644 --- a/Kernel/drv/vterm.c +++ b/Kernel/drv/vterm.c @@ -236,8 +236,8 @@ int VT_Install(char **Arguments) for( i = 0; i < NUM_VTS; i++ ) { gVT_Terminals[i].Mode = TERM_MODE_TEXT; -// gVT_Terminals[i].Flags = 0; - gVT_Terminals[i].Flags = VT_FLAG_HIDECSR; //HACK - Stop all those memcpy calls + gVT_Terminals[i].Flags = 0; +// gVT_Terminals[i].Flags = VT_FLAG_HIDECSR; //HACK - Stop all those memcpy calls gVT_Terminals[i].CurColour = DEFAULT_COLOUR; gVT_Terminals[i].WritePos = 0; gVT_Terminals[i].AltWritePos = 0; @@ -462,14 +462,13 @@ Uint64 VT_Read(tVFS_Node *Node, Uint64 Offset, Uint64 Length, void *Buffer) Mutex_Acquire( &term->ReadingLock ); - // Update cursor - VT_int_UpdateCursor(term, 1); - // Check current mode switch(term->Mode) { // Text Mode (UTF-8) case TERM_MODE_TEXT: + VT_int_UpdateCursor(term, 1); + VFS_SelectNode(Node, VFS_SELECT_READ, NULL, "VT_Read (UTF-8)"); avail = term->InputWrite - term->InputRead; diff --git a/Kernel/syscalls.c b/Kernel/syscalls.c index 174daef4..35e48902 100644 --- a/Kernel/syscalls.c +++ b/Kernel/syscalls.c @@ -163,7 +163,6 @@ void SyscallHandler(tSyscallRegs *Regs) { tmp = (char**)Regs->Arg3; CHECK_NUM_NONULL(tmp, sizeof(char**)); - Log("tmp = %p", tmp); for(i=0;tmp[i];i++) { CHECK_NUM_NONULL( &tmp[i], sizeof(char*) ); CHECK_STR_NONULL( tmp[i] );