summaryrefslogtreecommitdiff
path: root/kern/bootstrap.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-18 18:40:47 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-18 18:55:52 +0200
commit661a0a5c59714b95633a866f717d8072c67f7ac7 (patch)
treea33f14d410c238e5150b251e6ea0130da3dcbc1e /kern/bootstrap.c
parent63e97b694c2f9eefe33d5ac84c18df0dc102759a (diff)
kern/bootstrap: fix locking
* kern/bootstrap.c (boot_script_exec_cmd): Add missing unlock. (user_bootstrap): Likewise.
Diffstat (limited to 'kern/bootstrap.c')
-rw-r--r--kern/bootstrap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kern/bootstrap.c b/kern/bootstrap.c
index e70e1f6..50388ad 100644
--- a/kern/bootstrap.c
+++ b/kern/bootstrap.c
@@ -735,6 +735,7 @@ boot_script_exec_cmd (void *hook, task_t task, char *path, int argc,
thread_sleep ((event_t) &info, simple_lock_addr(info.lock), FALSE);
simple_lock (&info.lock);
}
+ simple_unlock (&info.lock);
printf ("\n");
}
@@ -769,6 +770,7 @@ static void user_bootstrap(void)
simple_lock (&info->lock);
assert (!info->done);
info->done = 1;
+ simple_unlock (&info->lock);
thread_wakeup ((event_t) info);
/*