From a54b2baac24a08b82791ede1491f31ce9408af3f Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 15 Mar 2006 20:25:50 +0100 Subject: Implement console for Mini-os and also fix 2 bugs: a) in initialising new page table frames b) in initialising idle thread. Signed-off-by: Grzegorz Milos --- extras/mini-os/sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extras/mini-os/sched.c') diff --git a/extras/mini-os/sched.c b/extras/mini-os/sched.c index 6c1af5930f..9f60e16148 100644 --- a/extras/mini-os/sched.c +++ b/extras/mini-os/sched.c @@ -46,6 +46,7 @@ #include #include + #ifdef SCHED_DEBUG #define DEBUG(_f, _a...) \ printk("MINI_OS(file=sched.c, line=%d) " _f "\n", __LINE__, ## _a) @@ -61,7 +62,7 @@ #define clear_runnable(_thread) (_thread->flags &= ~RUNNABLE_FLAG) -struct thread *idle_thread; +struct thread *idle_thread = NULL; LIST_HEAD(exited_threads); void dump_stack(struct thread *thread) @@ -225,7 +226,6 @@ void idle_thread_fn(void *unused) for(;;) { schedule(); - printk("Blocking the domain\n"); block_domain(10000); } } -- cgit v1.2.3