mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-03 19:39:18 +00:00
Fix IsVirtualizedEnvironment()
This commit is contained in:
@ -147,7 +147,7 @@ bool DetectByCPUID()
|
|||||||
|
|
||||||
bool DetectByHPET()
|
bool DetectByHPET()
|
||||||
{
|
{
|
||||||
assert(PowerManager == nullptr);
|
assert(PowerManager != nullptr);
|
||||||
|
|
||||||
void *acpi = PowerManager->GetACPI();
|
void *acpi = PowerManager->GetACPI();
|
||||||
if (!acpi)
|
if (!acpi)
|
||||||
@ -179,8 +179,8 @@ bool IsVirtualizedEnvironment()
|
|||||||
{
|
{
|
||||||
static bool IsVM = false;
|
static bool IsVM = false;
|
||||||
|
|
||||||
static int _check = 0;
|
static int vm_check = 0;
|
||||||
if (!_check++)
|
if (vm_check++)
|
||||||
{
|
{
|
||||||
debug("Virtualized environment: %s",
|
debug("Virtualized environment: %s",
|
||||||
IsVM ? "Yes" : "No");
|
IsVM ? "Yes" : "No");
|
||||||
|
Reference in New Issue
Block a user