History log of /freebsd-current/sys/contrib/dev/acpica/include/actypes.h
Revision Date Author Comments
# 07c64d74 30-Jan-2024 Jung-uk Kim <jkim@FreeBSD.org>

acpica: Import ACPICA 20230628

(cherry picked from commit ef3ba9d625927fd4592a8c071698a562821485bd)


# 722b1667 30-Jan-2024 Jung-uk Kim <jkim@FreeBSD.org>

acpica: Import ACPICA 20230331

(cherry picked from commit 8e013e1e3b81740266738226667431cf5c28b17a)


# 9a4bc520 27-Oct-2022 Jung-uk Kim <jkim@FreeBSD.org>

acpica: Import ACPICA 20221020

(cherry picked from commit a799bdd9d50e84cd6a36e8f1d2ac4301b2a6b374)


# ab71bbb7 31-Mar-2022 Jung-uk Kim <jkim@FreeBSD.org>

acpica: Import ACPICA 20220331

(cherry picked from commit ca1c95cc699a25d891e62ef863c8268c93b35cf8)


# 1b7a2680 30-Sep-2021 Jung-uk Kim <jkim@FreeBSD.org>

Import ACPICA 20210930

(cherry picked from commit c509b6ab0d7e5bafc5348b08653b8738bd40716e)


# 130a690a 29-Aug-2021 Dimitry Andric <dim@FreeBSD.org>

Fix acpica macros that subtract null pointers

Clang 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 @cem
in 2018: https://github.com/acpica/acpica/issues/407, but it seems there
was never any fix committed for it upstream.

Instead fix these locally, for ACPI_TO_INTEGER by simply casting the
incoming pointer to ACPI_SIZE (which corresponds roughly to uintptr_t
and size_t), and for ACPI_OFFSET by reusing our __offsetof definition
from sys/cdefs.h.

Reviewed by: emaste, kib, imp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D31710


# 29f37e9b 05-Jan-2021 Jung-uk Kim <jkim@FreeBSD.org>

acpica: Import ACPICA 20210105.

(cherry picked from commit a61ec1492c58c40bd0d968794c380668c157e2ef)


# 385fb5d9 04-Jan-2021 Jung-uk Kim <jkim@FreeBSD.org>

acpica: Import ACPICA 20201217.

(cherry picked from commit a4634ed7779f0905e3bfeb781e58d40a5bdf9bb7)


# ec2bf1e7 06-Jan-2018 Dimitry Andric <dim@FreeBSD.org>

Revert r327338, undoing the changes to the ACPI_ADD_PTR and ACPI_SUB_PTR
macros. Instead, turn off clang 6.0.0 warnings about null pointer
arithmetic in usr.sbin/acpi/acpidb instead.


# 42e6db53 28-Dec-2017 Dimitry Andric <dim@FreeBSD.org>

Work around clang 6.0.0 warnings about arithmetic on NULL pointers in
acpica, by redefining the ACPI_ADD_PTR and ACPI_SUB_PTR macros so they
use integer arithmetic instead.

This is a temporary fix, to be reverted before merging back to head,
unless jkim reads my mail and agrees with this. :)


# d7bbccdd 30-Sep-2017 Jung-uk Kim <jkim@FreeBSD.org>

Revert r324109. This commit broke a number of systems.

Reported by: lwhsu, kib
Requested by: ngie


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 44dd6ac2 26-Apr-2010 Jung-uk Kim <jkim@FreeBSD.org>

MFC: r204773
Merge ACPICA 20100304.

MFC: r204874
Update module Makefile for ACPICA 20100304.

MFC: r204877
Allow ACPI module build on amd64. Although we strongly recommend building
it into kernel, there is no need to prevent it from building at all.

MFC: r204916
- Allow users to enable dumping Debug objects without ACPI debugger.
Setting the new sysctl MIB "debug.acpi.enable_debug_objects" to a non-zero
value enables us to print Debug object when something is written to it.
- Allow users to disable interpreter slack mode. Setting the new tunable
"debug.acpi.interpreter_slack" to zero disables some workarounds for common
BIOS mistakes and enables strict ACPI implementations by the specification.

MFC: r204920
Since the interpreter slack mode is a tunable now, enable a local hack only
when it is set. Note the default behaviour does not change by this change.

MFC: r204965
Fix white spaces.

MFC: r206117
Merge ACPICA 20100331 (and four additional upstream patches).


# e21bbd17 05-Feb-2010 Andriy Gapon <avg@FreeBSD.org>

MFC r197104,197105,197106,197107,197688,198237,199337,199338,200553,200554,
202771,202773: bring acpica version to 20100121

MFC details:
r197104 | jkim | 2009-09-12 01:48:53 +0300 (Sat, 12 Sep 2009) | 4 lines
MFV: r196804
Import ACPICA 20090903

r197105 | jkim | 2009-09-12 01:49:34 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197106 | jkim | 2009-09-12 01:50:15 +0300 (Sat, 12 Sep 2009) | 2 lines
Catch up with ACPICA 20090903.

r197107 | jkim | 2009-09-12 01:56:08 +0300 (Sat, 12 Sep 2009) | 2 lines
Canonify include paths for newly added files.

r197688 | jkim | 2009-10-01 23:56:15 +0300 (Thu, 01 Oct 2009) | 4 lines
Compile ACPI debugger and disassembler for kernel modules
unconditionally.
These files will generate almost empty object files without
ACPI_DEBUG/DDB
options. As a result, size of acpi.ko will increase slightly.

r198237 | jkim | 2009-10-19 19:12:58 +0300 (Mon, 19 Oct 2009) | 2 lines
Merge ACPICA 20091013.

r199337 | jkim | 2009-11-16 23:47:12 +0200 (Mon, 16 Nov 2009) | 2 lines
Merge ACPICA 20091112.

r199338 | jkim | 2009-11-16 23:53:56 +0200 (Mon, 16 Nov 2009) | 2 lines
Add a forgotten module Makefile change from the previous commit.

r200553 | jkim | 2009-12-15 00:24:04 +0200 (Tue, 15 Dec 2009) | 2 lines
Merge ACPICA 20091214.

r200554 | jkim | 2009-12-15 00:28:32 +0200 (Tue, 15 Dec 2009) | 3 lines
Remove _FDE quirk handling as these quirks are automatically repaired
by ACPICA layer since ACPICA 20091214.

r202771 | jkim | 2010-01-21 23:14:28 +0200 (Thu, 21 Jan 2010) | 2 lines
Merge ACPICA 20100121.

r202773 | jkim | 2010-01-21 23:31:39 +0200 (Thu, 21 Jan 2010) | 2 lines
Fix a new header inclusion.

Discussed with: jkim, jhb
No objections from: acpi@