svn commit: r282538 - head/sys/dev/acpica

Andrew Turner andrew at FreeBSD.org
Wed May 6 14:14:15 UTC 2015


Author: andrew
Date: Wed May  6 14:14:14 2015
New Revision: 282538
URL: https://svnweb.freebsd.org/changeset/base/282538

Log:
  AcpiGbl_FACS will not be defined when building using the reduced hardware
  model. This may be the case on ARM.

Modified:
  head/sys/dev/acpica/acpi.c

Modified: head/sys/dev/acpica/acpi.c
==============================================================================
--- head/sys/dev/acpica/acpi.c	Wed May  6 14:09:54 2015	(r282537)
+++ head/sys/dev/acpica/acpi.c	Wed May  6 14:14:14 2015	(r282538)
@@ -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;


More information about the svn-src-head mailing list