diff options
Diffstat (limited to 'kern/thread_swap.c')
-rw-r--r-- | kern/thread_swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/thread_swap.c b/kern/thread_swap.c index 94e5c21..087c8bc 100644 --- a/kern/thread_swap.c +++ b/kern/thread_swap.c @@ -97,7 +97,7 @@ void thread_swapin(thread) thread->state = (thread->state & ~TH_SWAP_STATE) | TH_SW_COMING_IN; swapper_lock(); - enqueue_tail(&swapin_queue, (queue_entry_t) thread); + enqueue_tail(&swapin_queue, &(thread->links)); swapper_unlock(); thread_wakeup((event_t) &swapin_queue); break; |