[PowerPC] Add root_pic assertion.
When enabling an interrupt, assert that we do in fact have a root PIC. This would have saved me some debugging effort. Sponsored by: Tag1 Consulting, Inc.
This commit is contained in:
parent
895c98cc29
commit
d20ae9cca2
@ -457,6 +457,8 @@ powerpc_enable_intr(void)
|
||||
if (root_pic == NULL)
|
||||
root_pic = piclist[0].dev;
|
||||
|
||||
KASSERT(root_pic != NULL, ("no root PIC!"));
|
||||
|
||||
#ifdef SMP
|
||||
/* Install an IPI handler. */
|
||||
if (mp_ncpus > 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user