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:25:30 +0000 (13:25 -0700)
commitf2a7ba3b8def06e2492dc68cee9abe4301068b6d
treed34b9d9deb4480b5d330c73a8dd64e18fd9c3e3a
parent60654128f150954bc0f3f837c229b5d5ecf18dff
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