1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Improve upon revision 196196 by removing the newly added comment

in the wrong place and instead add a KASSERT in the right place.
This commit is contained in:
Marcel Moolenaar 2009-11-24 01:35:21 +00:00
parent a78fb6f93d
commit 9c6a6bc422
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199727

View File

@ -145,8 +145,6 @@ interrupt(struct trapframe *tf)
/*
* Handle ExtINT interrupts by generating an INTA cycle to
* read the vector.
* IPI_STOP_HARD is mapped to IPI_STOP so it is not necessary
* to add it to this switch-like construct.
*/
if (vector == 0) {
inta = ib->ib_inta;
@ -226,6 +224,10 @@ interrupt(struct trapframe *tf)
} else if (vector == ipi_vector[IPI_STOP]) {
cpumask_t mybit = PCPU_GET(cpumask);
/* Make sure IPI_STOP_HARD is mapped to IPI_STOP. */
KASSERT(IPI_STOP == IPI_STOP_HARD,
("%s: IPI_STOP_HARD not handled.", __func__));
savectx(PCPU_PTR(pcb));
atomic_set_int(&stopped_cpus, mybit);
while ((started_cpus & mybit) == 0)