This commit is contained in:
2026-08-18 01:28:35 +02:00
parent ac9d47fa16
commit cf3f1f9e99
11 changed files with 110 additions and 59 deletions
+2
View File
@@ -30,6 +30,8 @@ union ia32_star {
};
};
static_assert(sizeof(union ia32_star) == 8);
static void setup_cpu(struct percpu* cpu) {
asm_wrmsr(MSR_GS_BASE, (uint64_t)cpu);
asm_wrmsr(MSR_FS_BASE, 0);