Use new C++ API
This commit is contained in:
@@ -20,7 +20,7 @@ XTFASTCALL
|
||||
KRUNLEVEL
|
||||
HL::RunLevel::GetRunLevel(VOID)
|
||||
{
|
||||
return (KRUNLEVEL)ArReadControlRegister(8);
|
||||
return (KRUNLEVEL)AR::CpuFunc::ReadControlRegister(8);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,7 +37,7 @@ XTFASTCALL
|
||||
VOID
|
||||
HL::RunLevel::SetRunLevel(IN KRUNLEVEL RunLevel)
|
||||
{
|
||||
ArWriteControlRegister(8, RunLevel);
|
||||
AR::CpuFunc::WriteControlRegister(8, RunLevel);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -34,7 +34,7 @@ HL::Pic::CheckX2ApicSupport(VOID)
|
||||
CpuRegisters.Edx = 0;
|
||||
|
||||
/* Get CPUID */
|
||||
ArCpuId(&CpuRegisters);
|
||||
AR::CpuFunc::CpuId(&CpuRegisters);
|
||||
|
||||
/* Check x2APIC status from the CPUID results */
|
||||
if(!(CpuRegisters.Ecx & CPUID_FEATURES_ECX_X2APIC))
|
||||
|
Reference in New Issue
Block a user