mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Fix IsVirtualizedEnvironment()
This commit is contained in:
parent
51ae83bcb2
commit
877f91c80f
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user