diff options
| author | Arseney300 <Arseney300@gmail.com> | 2026-04-11 17:48:52 +0700 |
|---|---|---|
| committer | Arseney300 <Arseney300@gmail.com> | 2026-04-11 17:48:52 +0700 |
| commit | 496246c92dabe6757480147016490ea6ae43bb66 (patch) | |
| tree | cb922a0b1569410db44f6da17862b7e949df9fad /kernel/arch/x86_64/Processor.cpp | |
| parent | 2f95320e0859029f520d46f777591751dcd39634 (diff) | |
Kernel: main singleton object, that provide access to core kernel
entities
Processor: empty class, that will be used later for per-CPU entities
AcpiTables: class for acpi access (can be obtained through the kernel
object)
DeviceTree: class for dt access (can be obtained through the kernel
object)
Diffstat (limited to 'kernel/arch/x86_64/Processor.cpp')
| -rw-r--r-- | kernel/arch/x86_64/Processor.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/kernel/arch/x86_64/Processor.cpp b/kernel/arch/x86_64/Processor.cpp new file mode 100644 index 0000000..56f72ff --- /dev/null +++ b/kernel/arch/x86_64/Processor.cpp @@ -0,0 +1,17 @@ +// ============================================================================ +// arch/x86_64/Processor.cpp - x86_64 per-CPU state implementation +// ============================================================================ + +#include "Processor.h" +#include <boot/boot_info.h> + +static Processor g_processor; + +Processor& processor() { + return g_processor; +} + +void Processor::InitEarly(const BootInfo& boot_info) { + // Phase 2: GDT, IDT, LAPIC base, etc. + (void)boot_info; +} |
