From 16a51b317acd05663f22af692e140b6ea71bbe1c Mon Sep 17 00:00:00 2001 From: Reto Buerki Date: Mon, 2 Mar 2015 14:36:06 +0100 Subject: [PATCH] hw_x86_64: Implement Cpu_idle::Cpu_idle function The function is a copy of the ARM version. --- repos/base-hw/src/core/spec/x86/kernel/cpu.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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 11e97ac3a..031b900c7 100644 --- a/repos/base-hw/src/core/spec/x86/kernel/cpu.cc +++ b/repos/base-hw/src/core/spec/x86/kernel/cpu.cc @@ -14,13 +14,21 @@ /* core includes */ #include +#include using namespace Kernel; -Cpu_idle::Cpu_idle(Cpu * const cpu) : Cpu_job(Cpu_priority::min, 0) { - PDBG("not implemented"); } +Cpu_idle::Cpu_idle(Cpu * const cpu) : Cpu_job(Cpu_priority::min, 0) +{ + Cpu_job::cpu(cpu); + ip = (addr_t)&_main; + sp = (addr_t)&_stack[stack_size]; + init_thread((addr_t)core_pd()->translation_table(), core_pd()->id()); +} -void Cpu_idle::exception(unsigned const cpu) { - PDBG("not implemented"); } +void Cpu_idle::exception(unsigned const cpu) +{ + PDBG("not implemented"); +}