summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-16 02:18:47 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-20 19:59:30 +0200
commitb4fe3ce77c52ffb291aec4d29cf6c6731746ea99 (patch)
tree163a2dd2feb14f7c13cbc693890b5c864b0d995f /kern
parent35cab1dc03d4454a523c4611f7c770029c29da19 (diff)
codify locking contracts
Conflicts: vm/vm_page.h
Diffstat (limited to 'kern')
-rw-r--r--kern/exception.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kern/exception.c b/kern/exception.c
index 6cb3bfb..911cf93 100644
--- a/kern/exception.c
+++ b/kern/exception.c
@@ -454,6 +454,8 @@ exception_raise(
(sizeof(struct mach_exception) <= receiver->ith_msize) &&
((receiver->ith_option & MACH_RCV_NOTIFY) == 0))) ||
!thread_handoff(self, exception_raise_continue, receiver)) {
+ imq_lock_steal(reply_mqueue);
+ imq_lock_steal(dest_mqueue);
imq_unlock(reply_mqueue);
imq_unlock(dest_mqueue);
goto slow_exception_raise;
@@ -461,6 +463,8 @@ exception_raise(
counter(c_exception_raise_block++);
assert(current_thread() == receiver);
+ imq_lock_steal(reply_mqueue);
+ imq_lock_steal(dest_mqueue);
/*
* We need to finish preparing self for its