From: John Hodge Date: Mon, 28 Sep 2009 01:14:29 +0000 (+0800) Subject: Debug X-Git-Tag: rel0.06~409 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c2d23c47c37136ef5d8048cfa3fb7eaefbbf6d4e;p=tpg%2Facess2.git Debug --- diff --git a/Kernel/threads.c b/Kernel/threads.c index 07653853..d55bd2d7 100644 --- a/Kernel/threads.c +++ b/Kernel/threads.c @@ -586,5 +586,6 @@ tThread *Threads_GetNextToRun(int CPU) void Threads_SegFault(tVAddr Addr) { //Threads_SendSignal( Proc_GetCurThread()->TID, SIGSEGV ); - Threads_Kill( Proc_GetCurThread(), 0 ); + Log("Thread #%i committed a segfault at address %p\n", Proc_GetCurThread()->TID, Addr); + Threads_Exit( 0, 0 ); }