Use new C++ API
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in 29s
Builds / ExectOS (amd64, release) (push) Successful in 27s
Builds / ExectOS (i686, debug) (push) Successful in 30s
Builds / ExectOS (i686, release) (push) Successful in 28s

This commit is contained in:
2025-09-19 10:49:07 +02:00
parent 9bbac6d3c1
commit b2c8fa3e62
2 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ XTFASTCALL
KRUNLEVEL KRUNLEVEL
HL::RunLevel::GetRunLevel(VOID) HL::RunLevel::GetRunLevel(VOID)
{ {
return (KRUNLEVEL)ArReadControlRegister(8); return (KRUNLEVEL)AR::CpuFunc::ReadControlRegister(8);
} }
/** /**
@@ -37,7 +37,7 @@ XTFASTCALL
VOID VOID
HL::RunLevel::SetRunLevel(IN KRUNLEVEL RunLevel) HL::RunLevel::SetRunLevel(IN KRUNLEVEL RunLevel)
{ {
ArWriteControlRegister(8, RunLevel); AR::CpuFunc::WriteControlRegister(8, RunLevel);
} }
/** /**

View File

@@ -34,7 +34,7 @@ HL::Pic::CheckX2ApicSupport(VOID)
CpuRegisters.Edx = 0; CpuRegisters.Edx = 0;
/* Get CPUID */ /* Get CPUID */
ArCpuId(&CpuRegisters); AR::CpuFunc::CpuId(&CpuRegisters);
/* Check x2APIC status from the CPUID results */ /* Check x2APIC status from the CPUID results */
if(!(CpuRegisters.Ecx & CPUID_FEATURES_ECX_X2APIC)) if(!(CpuRegisters.Ecx & CPUID_FEATURES_ECX_X2APIC))