Cleaned up thread code, changed default compiler name (to i586 elf)
authorJohn Hodge <[email protected]>
Tue, 11 May 2010 02:16:51 +0000 (10:16 +0800)
committerJohn Hodge <[email protected]>
Tue, 11 May 2010 02:16:51 +0000 (10:16 +0800)
Kernel/threads.c
Makefile.cfg

index c62f726..b9b2992 100644 (file)
@@ -693,24 +693,17 @@ tThread *Threads_GetNextToRun(int CPU)
         int    number;
        
        if(giNumActiveThreads == 0) {
-               //Log_Debug("Threads", "CPU%i has no threads to run", CPU);
                return NULL;
        }
        
        // Special case: 1 thread
        if(giNumActiveThreads == 1) {
-               //Log_Debug("Threads", "CPU%i has only one thread %i %s",
-               //      CPU, gActiveThreads->TID, gActiveThreads->ThreadName);
                return gActiveThreads;
        }
        
-       //Log(" Threads_GetNextToRun: giNumActiveThreads=%i,giTotalTickets=%i",
-       //      giNumActiveThreads, giTotalTickets);
        // Get the ticket number
        ticket = number = rand() % giTotalTickets;
        
-       //Log(" Threads_GetNextToRun: ticket = %i", ticket);
-       
        // Find the next thread
        for(thread=gActiveThreads;thread;thread=thread->Next)
        {
@@ -728,9 +721,6 @@ tThread *Threads_GetNextToRun(int CPU)
                        giTotalTickets, number);
        }
        
-       //Log_Debug("Threads", "Switching CPU%i to %p (%s)",
-       //      CPU, thread, thread->ThreadName);
-       
        return thread;
 }
 
index 57c285a..3451f90 100644 (file)
@@ -2,10 +2,10 @@
 # Acess2 Build Configuration
 #
 
-CC = gcc
-LD = ld
+CC = i586-elf-gcc
+LD = i586-elf-ld
 AS = nasm
-OBJDUMP = objdump
+OBJDUMP = i586-elf-objdump
 RM = @rm -f
 STRIP = strip
 MKDIR = mkdir

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