From c14898703d933ec987aed05cfdfee49ead8ede5a Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Mon, 9 Mar 2015 10:38:13 +0100 Subject: [PATCH] hw_x86_64: Implement Cpu_idle::exception function Forward external interrupts during the CPU idle thread to the _interrupt function. --- repos/base-hw/src/core/spec/x86/kernel/cpu.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/repos/base-hw/src/core/spec/x86/kernel/cpu.cc b/repos/base-hw/src/core/spec/x86/kernel/cpu.cc index 031b900c7..c98ec0f99 100644 --- a/repos/base-hw/src/core/spec/x86/kernel/cpu.cc +++ b/repos/base-hw/src/core/spec/x86/kernel/cpu.cc @@ -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); }