Debug
authorJohn Hodge <[email protected]>
Mon, 28 Sep 2009 01:14:29 +0000 (09:14 +0800)
committerJohn Hodge <[email protected]>
Mon, 28 Sep 2009 01:14:29 +0000 (09:14 +0800)
Kernel/threads.c

index 0765385..d55bd2d 100644 (file)
@@ -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 );
 }

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