From: Ben Pfaff Date: Mon, 11 Dec 2006 20:40:20 +0000 (+0000) Subject: Parse command-line options much earlier, so that thread_mlfqs is X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53a7f5d0952a4595f252247f5ee3d017468eb57e;hp=53a7f5d0952a4595f252247f5ee3d017468eb57e;p=pintos-anon Parse command-line options much earlier, so that thread_mlfqs is initialized before thread_init() gets hold of it. Also allow console output much earlier, by doing initialization whenever we call into it first and by only trying to take the console lock after threads have been initialized. Don't try to take the console lock after the kernel panics, to avoid getting nailed so hard by bugs in lock_acquire(). Suggested by Godmar Back. ---