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:
parent
e443b859e6
commit
c14898703d
|
@ -30,5 +30,11 @@ Cpu_idle::Cpu_idle(Cpu * const cpu) : Cpu_job(Cpu_priority::min, 0)
|
||||||
|
|
||||||
void Cpu_idle::exception(unsigned const cpu)
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue