kernel - Improve ACPI compatibility with older BIOSes
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 11 Jun 2018 20:21:53 +0000 (13:21 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 11 Jun 2018 20:21:53 +0000 (13:21 -0700)
commitdd62cb1009be64311a6460315301e1a6f3a88e04
tree1b4ea58a2dcdd0d18f05f1e1c8cf36d5a44d6470
parentd53d00abbebb746c756238db87b1fb613876e0f8
kernel - Improve ACPI compatibility with older BIOSes

* ACPI alignment field in ACPI resources can sometimes be 0, leading
  to passing 0 for 'align' to acpi_res_set_iorange() which panics the
  box with a division-by-zero fault.

* Relax handling of this argument by setting it to 1 if it is found
  to be 0.

* Fixes DFly panics with certain older BIOSes.

Reported-by: myu
sys/dev/acpica/acpi_resource.c