Move the ap boot spin lock earlier in the lock order before the sio(4)

lock since we occasionally call printf() while holding the ap boot lock
which can call down into the sio(4) driver if using a serial console.
This commit is contained in:
John Baldwin 2001-10-01 22:50:30 +00:00
parent 7105201b3d
commit 0479e3d339

View File

@ -197,8 +197,11 @@ static struct witness_order_list_entry order_lists[] = {
/*
* spin locks
*/
#if defined(__i386__) && defined (SMP)
#ifdef SMP
{ "ap boot", &lock_class_mtx_spin },
#ifdef __i386__
{ "com", &lock_class_mtx_spin },
#endif
#endif
{ "sio", &lock_class_mtx_spin },
#ifdef __i386__
@ -213,7 +216,6 @@ static struct witness_order_list_entry order_lists[] = {
* leaf locks
*/
#ifdef SMP
{ "ap boot", &lock_class_mtx_spin },
#ifdef __i386__
{ "imen", &lock_class_mtx_spin },
#endif