From: John Hodge Date: Tue, 11 May 2010 02:16:51 +0000 (+0800) Subject: Cleaned up thread code, changed default compiler name (to i586 elf) X-Git-Tag: rel0.06~198 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e266c901ab2bd1b7b249a80b5a556e6f7cbb34ba;p=tpg%2Facess2.git Cleaned up thread code, changed default compiler name (to i586 elf) --- diff --git a/Kernel/threads.c b/Kernel/threads.c index c62f7268..b9b29923 100644 --- a/Kernel/threads.c +++ b/Kernel/threads.c @@ -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; } diff --git a/Makefile.cfg b/Makefile.cfg index 57c285a2..3451f90e 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -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