Call ast() only when we're handling a user trap.

This commit is contained in:
Marcel Moolenaar 2002-03-05 06:13:22 +00:00
parent 78a30c40c2
commit 2242af42cf

View File

@ -123,7 +123,8 @@ interrupt(u_int64_t vector, struct trapframe *framep)
critical_exit();
#ifdef SMP
} else if (vector == mp_ipi_vector[IPI_AST]) {
ast(framep);
if ((framep->tf_cr_ipsr & IA64_PSR_CPL) == IA64_PSR_CPL_USER)
ast(framep);
} else if (vector == mp_ipi_vector[IPI_RENDEZVOUS]) {
smp_rendezvous_action();
} else if (vector == mp_ipi_vector[IPI_STOP]) {