hw_x86_64: Implement Cpu_idle::exception function

Forward external interrupts during the CPU idle thread to the
_interrupt function.
This commit is contained in:
Reto Buerki 2015-03-09 10:38:13 +01:00 committed by Christian Helmuth
parent e443b859e6
commit c14898703d
1 changed files with 7 additions and 1 deletions

View File

@ -30,5 +30,11 @@ Cpu_idle::Cpu_idle(Cpu * const cpu) : Cpu_job(Cpu_priority::min, 0)
void Cpu_idle::exception(unsigned const cpu)
{
PDBG("not implemented");
if (trapno == RESET) {
return;
} else if (trapno >= INTERRUPTS_START && trapno <= INTERRUPTS_END) {
_interrupt(cpu);
return;
}
assert(0);
}