From 3688167daa33f39c82d30563f7dae7ef57f57072 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 27 Sep 2009 10:33:42 +0800 Subject: [PATCH] Added debug to Proc_Clone --- Kernel/arch/x86/proc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.20.1