Kernel - Reenabled locking on debug output
authorJohn Hodge <[email protected]>
Mon, 13 Feb 2012 10:21:41 +0000 (18:21 +0800)
committerJohn Hodge <[email protected]>
Mon, 13 Feb 2012 10:21:41 +0000 (18:21 +0800)
- Also initialised work queue for timers (didn't matter, but it's a
  neatness thing)

KernelLand/Kernel/debug.c
KernelLand/Kernel/time.c

index 25ffda1..355624d 100644 (file)
@@ -9,7 +9,7 @@
 
 #define        DEBUG_MAX_LINE_LEN      256
 
-#define        LOCK_DEBUG_OUTPUT       0
+#define        LOCK_DEBUG_OUTPUT       1
 
 #define TRACE_TO_KTERM 0
 
index cf3370a..d4fd5ec 100644 (file)
@@ -49,6 +49,7 @@ tShortSpinlock        gTimers_ListLock;
 void Timer_CallbackThread(void *Unused)
 {
        Threads_SetName("Timer Callback Thread");
+       Workqueue_Init(&gTimers_CallbackQueue, "Timer Callbacks", offsetof(tTimer, Next));
 
        for(;;)
        {

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