acpica: Import ACPICA 20221020(cherry picked from commit a799bdd9d50e84cd6a36e8f1d2ac4301b2a6b374)
acpica: Import ACPICA 20220331(cherry picked from commit ca1c95cc699a25d891e62ef863c8268c93b35cf8)
Import ACPICA 20210930(cherry picked from commit c509b6ab0d7e5bafc5348b08653b8738bd40716e)
Fix acpica macros that subtract null pointersClang 13.0.0 produces a new -Werror warning about the ACPI_TO_INTEGER(p)and ACPI_OFFSET(d, f) macros in acpica's actypes.h: sys/contrib/dev/acpica
Fix acpica macros that subtract null pointersClang 13.0.0 produces a new -Werror warning about the ACPI_TO_INTEGER(p)and ACPI_OFFSET(d, f) macros in acpica's actypes.h: sys/contrib/dev/acpica/components/dispatcher/dsopcode.c:708:31: error: performing pointer subtraction with a null pointer has undefined behavior [-Werror,-Wnull-pointer-subtraction] ObjDesc->Region.Address = ACPI_PTR_TO_PHYSADDR (Table); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ sys/contrib/dev/acpica/include/actypes.h:664:41: note: expanded from macro 'ACPI_PTR_TO_PHYSADDR' #define ACPI_PTR_TO_PHYSADDR(i) ACPI_TO_INTEGER(i) ^~~~~~~~~~~~~~~~~~ sys/contrib/dev/acpica/include/actypes.h:661:41: note: expanded from macro 'ACPI_TO_INTEGER' #define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sys/contrib/dev/acpica/include/actypes.h:656:82: note: expanded from macro 'ACPI_PTR_DIFF' #define ACPI_PTR_DIFF(a, b) ((ACPI_SIZE) (ACPI_CAST_PTR (UINT8, (a)) - ACPI_CAST_PTR (UINT8, (b)))) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.This problem of undefined behavior was also reported to acpica by @cemin 2018: https://github.com/acpica/acpica/issues/407, but it seems therewas never any fix committed for it upstream.Instead fix these locally, for ACPI_TO_INTEGER by simply casting theincoming pointer to ACPI_SIZE (which corresponds roughly to uintptr_tand size_t), and for ACPI_OFFSET by reusing our __offsetof definitionfrom sys/cdefs.h.Reviewed by: emaste, kib, impMFC after: 3 daysDifferential Revision: https://reviews.freebsd.org/D31710
show more ...
acpica: Import ACPICA 20210730(cherry picked from commit 34cfdff1f386b2d7bf0a8ea873acf604753991e6)
Import ACPICA 20210604(cherry picked from commit 395770967c3664ec744e63fa47acc19670d32f47)
Merge ACPICA 20210331.(cherry picked from commit 1e02e5b0ba8634758c128dcb43c67342c7219cd4)
acpica: Import ACPICA 20210105.(cherry picked from commit a61ec1492c58c40bd0d968794c380668c157e2ef)
acpica: Import ACPICA 20201217.(cherry picked from commit a4634ed7779f0905e3bfeb781e58d40a5bdf9bb7)
MFV: r367652Merge ACPICA 20201113.
MFV: r366539Merge ACPICA 20200925.
MFV: r363292Merge ACPICA 20200717.
MFV: r361597Import ACPICA 20200528.
MFV: r360512Merge ACPICA 20200430.
Merge ACPICA 20200326.
MFV: r357927Merge ACPICA 20200214.
MFV: r356607Import ACPICA 20200110.
MFV: r355716Merge ACPICA 20191213.
Merge ACPICA 20191018.
MFV: r351091Fix the reported boot failures and revert r350510.Note this commit is effectively merging ACPICA 20190703 again and applyingan upstream patch.https://github.com/acpica/acpica/commi
MFV: r351091Fix the reported boot failures and revert r350510.Note this commit is effectively merging ACPICA 20190703 again and applyingan upstream patch.https://github.com/acpica/acpica/commit/73f6372Tested by: scottl
Enable ACPICA mutex debugging in INVARIANTS case.This lets us detect lock order reversal in ACPICA code to avoid deadlock.
Revert r349863 (ACPICA 20190703).This commit caused boot failures on some systems.Requested by: scottl
MFV: r349861Import ACPICA 20190703.
MFV: r347413Import ACPICA 20190509.
MFV: r345969Import ACPICA 20190405.
12345