mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
27 lines
399 B
C++
27 lines
399 B
C++
#include <smp.hpp>
|
|
|
|
#include <cpu.hpp>
|
|
|
|
#include "../../../kernel.h"
|
|
|
|
extern "C" uint64_t _trampoline_start, _trampoline_end;
|
|
|
|
#define TRAMPOLINE_START 0x2000
|
|
|
|
enum SMPTrampolineAddress
|
|
{
|
|
PAGE_TABLE = 0x500,
|
|
START_ADDR = 0x520,
|
|
STACK = 0x570,
|
|
GDT = 0x580,
|
|
IDT = 0x590,
|
|
};
|
|
|
|
volatile bool CPUEnabled = false;
|
|
|
|
extern "C" void StartCPU()
|
|
{
|
|
CPUEnabled = true;
|
|
CPU::Stop();
|
|
}
|