diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2014-08-28 23:03:15 +0200 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2014-09-11 06:46:41 +0200 |
commit | 802c910fa39d7245c96ad055988ccfc3a3ab26c1 (patch) | |
tree | 47cfe9ba8ef516f14e4d07ef8dc17891f9849776 | |
parent | dac17a74156a3eea2cc92c336b552165741119cb (diff) |
Increase space for ACPI tables when using dynamic CBMEM
Unlike in old style CBMEM, dynamic CBMEM does not have a
hand-calculated, hard-coded size, so allow up to 144K of
space for ACPI tables.
Change-Id: Id9dd7447c46d5fe7ed581be753d70e59add05320
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/6795
Tested-by: build bot (Jenkins)
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r-- | src/arch/x86/boot/tables.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/boot/tables.c b/src/arch/x86/boot/tables.c index 16c752a154..42b8a678ee 100644 --- a/src/arch/x86/boot/tables.c +++ b/src/arch/x86/boot/tables.c @@ -109,7 +109,11 @@ void write_tables(void) #endif /* CONFIG_GENERATE_MP_TABLE */ #if CONFIG_GENERATE_ACPI_TABLES +#if CONFIG_DYNAMIC_CBMEM +#define MAX_ACPI_SIZE (144 * 1024) +#else #define MAX_ACPI_SIZE (45 * 1024) +#endif post_code(0x9c); /* Write ACPI tables to F segment and high tables area */ |