mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-14 15:06:52 -04:00
Add initialized flag
This commit is contained in:
parent
384c99df8c
commit
f5ed147f84
@ -13,6 +13,8 @@ namespace acpi {
|
|||||||
bool init();
|
bool init();
|
||||||
void shutdown();
|
void shutdown();
|
||||||
|
|
||||||
|
bool initialized();
|
||||||
|
|
||||||
} //end of acpi namespace
|
} //end of acpi namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
bool acpi_initialized = false;
|
||||||
|
|
||||||
uint32_t SMI_CMD; //ptr
|
uint32_t SMI_CMD; //ptr
|
||||||
uint8_t ACPI_ENABLE;
|
uint8_t ACPI_ENABLE;
|
||||||
uint8_t ACPI_DISABLE;
|
uint8_t ACPI_DISABLE;
|
||||||
@ -279,6 +281,9 @@ bool initialize_acpica(){
|
|||||||
|
|
||||||
//TODO COntinue
|
//TODO COntinue
|
||||||
|
|
||||||
|
|
||||||
|
acpi_initialized = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -311,3 +316,7 @@ void acpi::shutdown(){
|
|||||||
|
|
||||||
k_print_line("acpi poweroff failed.");
|
k_print_line("acpi poweroff failed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool acpi::initialized(){
|
||||||
|
return acpi_initialized;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user