1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

AcpiGbl_FACS will not be defined when building using the reduced hardware

model. This may be the case on ARM.
This commit is contained in:
Andrew Turner 2015-05-06 14:14:14 +00:00
parent ef74544931
commit fe5d5d7d05
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282538

View File

@ -605,9 +605,11 @@ acpi_attach(device_t dev)
if (AcpiGbl_FADT.Flags & ACPI_FADT_RESET_REGISTER)
sc->acpi_handle_reboot = 1;
#if !ACPI_REDUCED_HARDWARE
/* Only enable S4BIOS by default if the FACS says it is available. */
if (AcpiGbl_FACS != NULL && AcpiGbl_FACS->Flags & ACPI_FACS_S4_BIOS_PRESENT)
sc->acpi_s4bios = 1;
#endif
/* Probe all supported sleep states. */
acpi_sleep_states[ACPI_STATE_S0] = TRUE;