Reduced chattiness of threading, x86 IRQs and BochsGA
authorJohn Hodge <[email protected]>
Mon, 7 May 2012 13:23:55 +0000 (21:23 +0800)
committerJohn Hodge <[email protected]>
Mon, 7 May 2012 13:23:55 +0000 (21:23 +0800)
KernelLand/Kernel/arch/x86/irq.c
KernelLand/Kernel/threads.c
KernelLand/Modules/Display/BochsGA/bochsvbe.c

index 3d23636..eb89139 100644 (file)
@@ -62,7 +62,7 @@ int IRQ_AddHandler( int Num, void (*Callback)(int, void*), void *Ptr )
        for( i = 0; i < MAX_CALLBACKS_PER_IRQ; i++ )
        {
                if( gIRQ_Handlers[Num][i] == NULL ) {
-                       Log_Log("IRQ", "Added IRQ%i Cb#%i %p", Num, i, Callback);
+//                     Log_Log("IRQ", "Added IRQ%i Cb#%i %p", Num, i, Callback);
                        gIRQ_Handlers[Num][i] = Callback;
                        gaIRQ_DataPointers[Num][i] = Ptr;
                        return 1;
index 8189cf4..6099621 100644 (file)
@@ -211,7 +211,7 @@ int Threads_SetName(const char *NewName)
        if( IsHeap(oldname) )   free( oldname );        
        cur->ThreadName = strdup(NewName);
 
-       Log_Debug("Threads", "Thread renamed to '%s'", NewName);        
+//     Log_Debug("Threads", "Thread renamed to '%s'", NewName);        
 
        return 0;
 }
index 4e0e600..70f0c91 100644 (file)
@@ -103,6 +103,10 @@ int BGA_Install(char **Arguments)
        // Check BGA Version\r
        version = BGA_int_ReadRegister(VBE_DISPI_INDEX_ID);\r
        LOG("version = 0x%x", version);\r
+       if( version == 0xFFFF ) {\r
+               // Floating bus, nothing there\r
+               return MODULE_ERR_NOTNEEDED;\r
+       }\r
        \r
        // NOTE: This driver was written for BGA versions >= 0xBOC2\r
        // NOTE: However, Qemu is braindead and doesn't return the actual version\r

UCC git Repository :: git.ucc.asn.au