summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Laska <jlaska@xes-inc.com>2016-03-15 21:53:27 -0500
committerMartin Roth <martinroth@google.com>2016-03-18 19:15:25 +0100
commitf3f654ddb90fedfb72eab99db6f9893e898ffbff (patch)
tree81e2a78638291880c669de0253937c4ba9b62af4
parent331ac1b07896140a14dbb079b3cb907762cec218 (diff)
src/arch/x86/acpi.c: Use correct host address width in DMAR ACPI table
The previous implementation assumed the CPU physical address size to be 40 which is not true of all platforms. Use an existing function to obtain the correct CPU physical address to report in the DMAR ACPI table. Change-Id: Ia79e9dadecc3f5f6a86ce3789b213222bef482b3 Signed-off-by: Jacob Laska <jlaska91@gmail.com> Reviewed-on: https://review.coreboot.org/14102 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r--src/arch/x86/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c
index a21bae2a36..5640ad0654 100644
--- a/src/arch/x86/acpi.c
+++ b/src/arch/x86/acpi.c
@@ -411,7 +411,7 @@ void acpi_create_dmar(acpi_dmar_t *dmar, enum dmar_flags flags,
header->length = sizeof(acpi_dmar_t);
header->revision = 1;
- dmar->host_address_width = 40 - 1; /* FIXME: == MTRR size? */
+ dmar->host_address_width = cpu_phys_address_size() - 1;
dmar->flags = flags;
current = acpi_fill_dmar(current);