summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/pc/vgavesa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/src/9/pc/vgavesa.c b/sys/src/9/pc/vgavesa.c
index 9a260907f..8c4c5f9c5 100644
--- a/sys/src/9/pc/vgavesa.c
+++ b/sys/src/9/pc/vgavesa.c
@@ -265,6 +265,10 @@ vesadisable(VGAscr *)
{
vesactl = Cdisable;
wakeup(&vesar);
+
+ /* wait for vesaproc to finish */
+ qlock(&vesaq);
+ qunlock(&vesaq);
}
static void