git: kernel/acpi: Reduce code duplication with ACPICA (second attempt).
Sascha Wildner
swildner at crater.dragonflybsd.org
Tue Mar 17 15:33:50 PDT 2015
commit 8d3ef488e21f14f3abb65711f950353257f32dd3
Author: Sascha Wildner <saw at online.de>
Date: Tue Mar 17 23:33:14 2015 +0100
kernel/acpi: Reduce code duplication with ACPICA (second attempt).
Use the types which the ACPICA framework provides whereever possible in
our acpi_fadt and acpi_madt code. Since we do not use any actual ACPICA
functions here, this is no problem even for code which (so far) runs
before ACPICA is initialized.
Compared to the previous attempt which I pushed (and reverted again)
this commit has the following additional fixes:
* Compare the FADT length to the length of the ACPI 2.0 (up to 4.0)
version of the table (which is 24 bytes shorter than the ACPI 5.0
version).
* Doesn't shift again an already shifted value.
Discussed-with-and-approved-by: sephe
Tested-by: Robin Hahling <robin.hahling at gw-computing.net>
Summary of changes:
sys/platform/pc64/acpica/acpi_fadt.c | 43 ++---
sys/platform/pc64/acpica/acpi_madt.c | 319 +++++++++++++-------------------
sys/platform/pc64/acpica/acpi_sdt.c | 133 +++++--------
sys/platform/pc64/acpica/acpi_sdt.h | 57 ------
sys/platform/pc64/acpica/acpi_sdt_var.h | 2 +-
5 files changed, 193 insertions(+), 361 deletions(-)
delete mode 100644 sys/platform/pc64/acpica/acpi_sdt.h
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8d3ef488e21f14f3abb65711f950353257f32dd3
--
DragonFly BSD source repository
More information about the Commits
mailing list