We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72cf390 commit 1e23e86Copy full SHA for 1e23e86
src/acpi.c
@@ -406,6 +406,8 @@ bool acpi_init(struct csmwrap_priv *priv) {
406
return false;
407
}
408
409
+static bool fully_initialized = false;
410
+
411
bool acpi_full_init(void) {
412
enum uacpi_status uacpi_status;
413
@@ -432,11 +434,15 @@ bool acpi_full_init(void) {
432
434
early_table_buffer = NULL;
433
435
436
437
+ fully_initialized = true;
438
439
return true;
440
441
442
void acpi_prepare_exitbs(void) {
- uacpi_state_reset();
443
+ if (fully_initialized) {
444
+ uacpi_state_reset();
445
+ }
446
447
if (early_table_buffer != NULL) {
448
gBS->FreePool(early_table_buffer);
0 commit comments