hw_x86_64: Implement Cpu_idle::Cpu_idle function
The function is a copy of the ARM version.
This commit is contained in:
parent
2ecdf4f729
commit
16a51b317a
|
@ -14,13 +14,21 @@
|
||||||
|
|
||||||
/* core includes */
|
/* core includes */
|
||||||
#include <kernel/cpu.h>
|
#include <kernel/cpu.h>
|
||||||
|
#include <kernel/kernel.h>
|
||||||
|
|
||||||
using namespace Kernel;
|
using namespace Kernel;
|
||||||
|
|
||||||
|
|
||||||
Cpu_idle::Cpu_idle(Cpu * const cpu) : Cpu_job(Cpu_priority::min, 0) {
|
Cpu_idle::Cpu_idle(Cpu * const cpu) : Cpu_job(Cpu_priority::min, 0)
|
||||||
PDBG("not implemented"); }
|
{
|
||||||
|
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) {
|
void Cpu_idle::exception(unsigned const cpu)
|
||||||
PDBG("not implemented"); }
|
{
|
||||||
|
PDBG("not implemented");
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user