Module Name: src Committed By: christos Date: Wed May 25 18:35:13 UTC 2016
Modified Files: src/sys/external/bsd/acpica/dist/hardware: hwregs.c src/sys/external/bsd/acpica/dist/include: acmacros.h Log Message: Apply patch https://github.com/acpica/acpica/commit/\ c450c13615f7af0673230041da4216b3de5bc4d3.patch This patch fixes 2 issues in AccessWidth/BitOffset support and adds comments to justify the BitOffset/BitWidth style macro usages. Lv Zheng. This patch introduces ACPI_IS_ALIGNED() macro. Lv Zheng. The old register descriptors are translated in AcpiTbInitGenericAddress() with AccessWidth being filled with 0. This breaks code in AcpiHwGetAccessBitWidth() when the registers are 16-bit IO ports and their BitWidth fields are filled with 16. The rapid fix is meant to make code written for AcpiHwGetAccessBitWidth() regression safer before the issue is correctly fixed from AcpiTbInitGenericAddress(). Reported by John Baldwin <j...@freebsd.org>, Fixed by Lv Zheng <lv.zh...@intel.com>, Tested by Jung-uk Kim <j...@freebsd.org>. To generate a diff of this commit: cvs rdiff -u -r1.1.1.7 -r1.2 \ src/sys/external/bsd/acpica/dist/hardware/hwregs.c cvs rdiff -u -r1.9 -r1.10 src/sys/external/bsd/acpica/dist/include/acmacros.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.