Move assert in sem_down()
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 9 Nov 2016 15:37:37 +0000 (10:37 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Nov 2016 16:27:40 +0000 (11:27 -0500)
commita6ae444fe5b0153d99f582294ebbdec78cffcd62
treee974d4c505a671cbd2823d29fac857d81dc73c29
parent4d9ff837b91c61a861a31dbe50f6835d1aaaf977
Move assert in sem_down()

This allows us to use qlocks before kthreads have been set up.  If we
actually will block on the qlock, then we'll still panic.  This won't
happen.  Overall, we can now use uncontested qlocks, which makes
bootstrapping a little easier.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/kthread.c