aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/dev/v86.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-10 20:23:13 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-10 20:23:13 +0100
commit0e50ada984473de20ba47c2ebdbe36b3dad78dd1 (patch)
tree7864cd0290a112244ef93fd590d018e52bbd16a3 /src/kernel/dev/v86.c
parent6d9cd139c42a48f5ddf8f8e284f56873de73fd31 (diff)
downloadkogata-0e50ada984473de20ba47c2ebdbe36b3dad78dd1.tar.gz
kogata-0e50ada984473de20ba47c2ebdbe36b3dad78dd1.zip
Add mutex to pciide driver (fixes some stuff)
Diffstat (limited to 'src/kernel/dev/v86.c')
-rw-r--r--src/kernel/dev/v86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/dev/v86.c b/src/kernel/dev/v86.c
index db84a4f..1838e92 100644
--- a/src/kernel/dev/v86.c
+++ b/src/kernel/dev/v86.c
@@ -117,6 +117,8 @@ void v86_run_bios_int(uint32_t int_no) {
}
void v86_thread_main(void* z) {
+ enter_critical(CL_NOSWITCH);
+
if (z) v86_retval = true;
wait_on(current_thread);