mini-os: Do not use the same wait element twice
To enqueue the kbdfront thread on two separate wait queues, we need two
different wait elements.
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
diff -r 8dada4c897c9 extras/mini-os/kernel.c
--- a/extras/mini-os/kernel.c Sat Mar 06 13:31:42 2010 +0000
+++ b/extras/mini-os/kernel.c Sun Apr 04 19:13:06 2010 +0200
@@ -353,6 +353,7 @@
static void kbdfront_thread(void *p)
{
DEFINE_WAIT(w);
+ DEFINE_WAIT(w2);
int x = WIDTH / 2, y = HEIGHT / 2, z = 0;
kbd_dev = init_kbdfront(NULL, 1);
@@ -367,7 +368,7 @@
int sleep = 1;
add_waiter(w, kbdfront_queue);
- add_waiter(w, fbfront_queue);
+ add_waiter(w2, fbfront_queue);
while (kbdfront_receive(kbd_dev, &kbdevent, 1) != 0) {
sleep = 0;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|