mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 11:55:24 +00:00
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)
|
||||
{
|
||||
PDBG("not implemented");
|
||||
if (trapno == RESET) {
|
||||
return;
|
||||
} else if (trapno >= INTERRUPTS_START && trapno <= INTERRUPTS_END) {
|
||||
_interrupt(cpu);
|
||||
return;
|
||||
}
|
||||
assert(0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user