There may not be an FACS table, check for this before accessing it.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a3d1b9c24a
commit
d8c37c3a16
@ -606,7 +606,7 @@ acpi_attach(device_t dev)
|
||||
sc->acpi_handle_reboot = 1;
|
||||
|
||||
/* Only enable S4BIOS by default if the FACS says it is available. */
|
||||
if (AcpiGbl_FACS->Flags & ACPI_FACS_S4_BIOS_PRESENT)
|
||||
if (AcpiGbl_FACS != NULL && AcpiGbl_FACS->Flags & ACPI_FACS_S4_BIOS_PRESENT)
|
||||
sc->acpi_s4bios = 1;
|
||||
|
||||
/* Probe all supported sleep states. */
|
||||
|
Loading…
Reference in New Issue
Block a user