diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-15 20:25:50 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-15 20:25:50 +0100 |
commit | a54b2baac24a08b82791ede1491f31ce9408af3f (patch) | |
tree | e6504405ba4086d61b1aa41e0122f0828e02dca1 /extras/mini-os/sched.c | |
parent | 7999d904265804ce344cf05a6bdf76429439f9a8 (diff) | |
download | xen-a54b2baac24a08b82791ede1491f31ce9408af3f.tar.gz xen-a54b2baac24a08b82791ede1491f31ce9408af3f.tar.bz2 xen-a54b2baac24a08b82791ede1491f31ce9408af3f.zip |
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 <gm281@cam.ac.uk>
Diffstat (limited to 'extras/mini-os/sched.c')
-rw-r--r-- | extras/mini-os/sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <sched.h> #include <semaphore.h> + #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); } } |