From: Bin Meng Date: Wed, 11 May 2016 14:45:02 +0000 (-0700) Subject: x86: Use high_table_malloc() for tables passing to SeaBIOS X-Git-Tag: v2016.07-rc1~177^2~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=644a76742c85ae8bbdd9fcd00d06b7099015d593;p=u-boot x86: Use high_table_malloc() for tables passing to SeaBIOS Now that we already reserved high memory for configuration tables, call high_table_malloc() to allocate tables from the region. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c index 1213a9cd2b..f92111e4c8 100644 --- a/arch/x86/lib/tables.c +++ b/arch/x86/lib/tables.c @@ -5,7 +5,6 @@ */ #include -#include #include #include #include @@ -81,9 +80,8 @@ void write_tables(void) #ifdef CONFIG_SEABIOS table_size = rom_table_end - rom_table_start; - high_table = (u32)memalign(ROM_TABLE_ALIGN, table_size); + high_table = (u32)high_table_malloc(table_size); if (high_table) { - memset((void *)high_table, 0, table_size); table_write_funcs[i](high_table); cfg_tables[i].start = high_table;