public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 08/14] x86: Use high_table_malloc() for tables passing to SeaBIOS
Date: Mon,  9 May 2016 02:34:31 -0700	[thread overview]
Message-ID: <1462786477-14036-9-git-send-email-bmeng.cn@gmail.com> (raw)
In-Reply-To: <1462786477-14036-1-git-send-email-bmeng.cn@gmail.com>

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 <bmeng.cn@gmail.com>
---

 arch/x86/lib/tables.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c
index 1213a9c..f92111e 100644
--- a/arch/x86/lib/tables.c
+++ b/arch/x86/lib/tables.c
@@ -5,7 +5,6 @@
  */
 
 #include <common.h>
-#include <malloc.h>
 #include <asm/sfi.h>
 #include <asm/mpspec.h>
 #include <asm/smbios.h>
@@ -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;
-- 
1.8.2.1

  parent reply	other threads:[~2016-05-09  9:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-09  9:34 [U-Boot] [PATCH 00/14] x86: acpi: Support installation of Ubuntu/Windows and boot Windows Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 01/14] x86: minnowmax: Adjust U-Boot environment address in SPI flash Bin Meng
2016-05-11  7:14   ` Stefan Roese
2016-05-09  9:34 ` [U-Boot] [PATCH 02/14] x86: Call board_final_cleanup() in last_stage_init() Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 03/14] x86: Fix up PIRQ routing table checksum earlier Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 04/14] x86: Compile coreboot_table.c only for SeaBIOS Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 05/14] x86: Prepare configuration tables in dedicated high memory region Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 06/14] x86: Unify reserve_arch() for all x86 boards Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 07/14] x86: Reserve configuration tables in high memory Bin Meng
2016-05-09  9:34 ` Bin Meng [this message]
2016-05-09  9:34 ` [U-Boot] [PATCH 09/14] x86: acpi: Switch to ACPI mode by ourselves instead of requested by OSPM Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 10/14] x86: doc: Update information about IGD with SeaBIOS Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 11/14] x86: doc: Mention Ubuntu/Windows installation and boot support Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 12/14] acpi: Quieten IASL output when 'make -s' is used Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 13/14] x86: baytrail: Add internal UART ASL description Bin Meng
2016-05-09  9:34 ` [U-Boot] [PATCH 14/14] x86: doc: Add porting hints for ACPI with Windows Bin Meng
2016-05-11  7:23 ` [U-Boot] [PATCH 00/14] x86: acpi: Support installation of Ubuntu/Windows and boot Windows Stefan Roese
2016-05-11  8:15   ` Bin Meng
2016-05-11  8:24     ` Stefan Roese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1462786477-14036-9-git-send-email-bmeng.cn@gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox