[PATCH 02/13] x86: Adjust search range for sysinfo table

Simon Glass sjg at chromium.org
Mon Feb 20 20:49:16 CET 2023


Avoid searching starting at 0 since this memory may not be available
and the table cannot be there anyway. Start at 0x400 instead.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/x86/cpu/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 6fe6eaf6c84..3394e5b523c 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -352,7 +352,7 @@ long locate_coreboot_table(void)
 	long addr;
 
 	/* We look for LBIO in the first 4K of RAM and again at 960KB */
-	addr = detect_coreboot_table_at(0x0, 0x1000);
+	addr = detect_coreboot_table_at(0x400, 0xc00);
 	if (addr < 0)
 		addr = detect_coreboot_table_at(0xf0000, 0x1000);
 
-- 
2.39.2.637.g21b0678d19-goog



More information about the U-Boot mailing list