From: John Hodge Date: Sun, 27 Sep 2009 02:33:42 +0000 (+0800) Subject: Added debug to Proc_Clone X-Git-Tag: rel0.06~479 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=3688167daa33f39c82d30563f7dae7ef57f57072;p=tpg%2Facess2.git Added debug to Proc_Clone --- diff --git a/Kernel/arch/x86/proc.c b/Kernel/arch/x86/proc.c index bb93bfc9..d468d11a 100644 --- a/Kernel/arch/x86/proc.c +++ b/Kernel/arch/x86/proc.c @@ -29,6 +29,7 @@ extern tThread *gActiveThreads; extern tThread *gSleepingThreads; extern tThread *gDeleteThreads; extern tThread *Threads_GetNextToRun(int CPU); +extern void Threads_Dump(); // === PROTOTYPES === void ArchThreads_Init(); @@ -312,6 +313,8 @@ int Proc_Clone(Uint *Err, Uint Flags) giTotalTickets += newThread->NumTickets; RELEASE( &giThreadListLock ); + Threads_Dump(); + return newThread->TID; } @@ -464,7 +467,7 @@ void Proc_Scheduler(int CPU) // Check if there is any tasks running if(giNumActiveThreads == 0) { - Log("No Active threads, sleeping\n"); + Log("No Active threads, sleeping"); __asm__ __volatile__ ("hlt"); return; }