diff --git a/src/system/kernel/thread.cpp b/src/system/kernel/thread.cpp index 1315338f1c..b92bdec833 100644 --- a/src/system/kernel/thread.cpp +++ b/src/system/kernel/thread.cpp @@ -2847,6 +2847,11 @@ thread_block_timeout(timer* timer) static inline status_t thread_block_locked(Thread* thread) { + if (thread->pinned_to_cpu > 0) { + panic("attempting to block thread %" B_PRId32 ", which is pinned!", + thread->id); + } + if (thread->wait.status == 1) { // check for signals, if interruptible if (thread_is_interrupted(thread, thread->wait.flags)) {