feat: Symmetric Multiprocessing, text editor improvements, merge doom libc, implement math functions

This commit is contained in:
2026-03-23 20:09:11 +01:00
parent a805b06406
commit 63d9270613
46 changed files with 3004 additions and 2404 deletions
+9
View File
@@ -24,6 +24,7 @@
#include <Graphics/Cursor.hpp>
#include <Libraries/Memory.hpp>
#include <Hal/MSR.hpp>
#include <Hal/SmpBoot.hpp>
#include <Api/Syscall.hpp>
using namespace Kt;
@@ -424,6 +425,14 @@ namespace Hal {
Hal::LoadTSS();
reinitProgress(0x03); // Syscalls
Montauk::InitializeSyscalls();
// Re-set GS base for BSP (lost during S3)
{
auto* bsp = Smp::GetCpuData(0);
if (bsp) {
Hal::WriteMSR(0xC0000101, (uint64_t)bsp); // IA32_GS_BASE
Hal::WriteMSR(0xC0000102, 0); // IA32_KERNEL_GS_BASE
}
}
reinitProgress(0x04); // PAT
Hal::InitializePAT();
reinitProgress(0x05); // PIC