svn commit: r364013 - head/sys/dev/acpica
Alexander Motin
mav at FreeBSD.org
Fri Aug 7 13:35:34 UTC 2020
Author: mav
Date: Fri Aug 7 13:35:34 2020
New Revision: 364013
URL: https://svnweb.freebsd.org/changeset/base/364013
Log:
Allow ACPI APEI driver build without PCI.
On x86 it seems difficult to build ACPI without PCI, but some aarch64
users appears to be doing it.
MFC after: 3 days
Modified:
head/sys/dev/acpica/acpi_apei.c
Modified: head/sys/dev/acpica/acpi_apei.c
==============================================================================
--- head/sys/dev/acpica/acpi_apei.c Fri Aug 7 12:47:00 2020 (r364012)
+++ head/sys/dev/acpica/acpi_apei.c Fri Aug 7 13:35:34 2020 (r364013)
@@ -29,6 +29,7 @@
__FBSDID("$FreeBSD$");
#include "opt_acpi.h"
+#include "opt_pci.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -207,8 +208,10 @@ static int
apei_pcie_handler(ACPI_HEST_GENERIC_DATA *ged)
{
struct apei_pcie_error *p = (struct apei_pcie_error *)(ged + 1);
+ int h = 0, off;
+#ifdef DEV_PCI
device_t dev;
- int h = 0, off, sev;
+ int sev;
if ((p->ValidationBits & 0x8) == 0x8) {
mtx_lock(&Giant);
@@ -235,6 +238,7 @@ apei_pcie_handler(ACPI_HEST_GENERIC_DATA *ged)
}
if (h)
return (h);
+#endif
printf("APEI %s PCIe Error:\n", apei_severity(ged->ErrorSeverity));
if (p->ValidationBits & 0x01)
More information about the svn-src-head
mailing list