[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:
Brandon Bergren 2020-09-08 22:42:41 +00:00
parent 895c98cc29
commit d20ae9cca2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365479

View File

@ -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) {