Fixes IRQ enabling when kthreads unblock
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 11 Nov 2014 21:32:34 +0000 (13:32 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 11 Nov 2014 21:32:34 +0000 (13:32 -0800)
commit10da17e8deb1ea3692a0a31cdaf8f37a7fe405d0
tree02167c79442df50e428be3958c2a8da1d07256ad
parent2c09f74a9c19ef2a092bde7379f20b9a00b6df34
Fixes IRQ enabling when kthreads unblock

When kthreads unblocked, IRQs would be disabled, regardless of whether or not
they were on when the thread tried to down a semaphore.  (With the exception of
the sem_down_irqsave, which already managed that).
kern/src/kthread.c