Changed SMP code

This commit is contained in:
Alex
2022-10-20 05:04:15 +03:00
parent 7f47b2a3a4
commit fa92676d9f
7 changed files with 39 additions and 61 deletions

View File

@ -177,8 +177,6 @@ namespace CPU
{
#if defined(__amd64__)
static int BSP = 0;
if (!BSP)
CPU::x64::wrmsr(CPU::x64::MSR_FS_BASE, 0);
CPU::x64::CR0 cr0 = CPU::x64::readcr0();
CPU::x64::CR4 cr4 = CPU::x64::readcr4();
uint32_t rax, rbx, rcx, rdx;

View File

@ -3,6 +3,7 @@
#include <display.hpp>
#include <printf.h>
#include <debug.h>
#include <smp.hpp>
#include <cpu.hpp>
#if defined(__amd64__)
@ -215,8 +216,7 @@ namespace CrashHandler
}
}
EHPrint("\e7981FCTechnical Informations on CPU %lld:\n",
CPU::x64::rdmsr(CPU::x64::MSR_FS_BASE));
EHPrint("\e7981FCTechnical Informations on CPU %lld:\n", GetCurrentCPU()->ID);
EHPrint("FS=%#llx GS=%#llx SS=%#llx CS=%#llx DS=%#llx\n",
CPU::x64::rdmsr(CPU::x64::MSR_FS_BASE), CPU::x64::rdmsr(CPU::x64::MSR_GS_BASE),
Frame->ss, Frame->cs, Frame->ds);