mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
x86: fsp: Report correct number of E820 table entries
The logic to calculate the number of E820 table entries is wrong when walking through the FSP HOB tables. Fix it. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Jian Luo <jian.luo4@boschrexroth.de> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c1446ac6c1
commit
196193a4d4
1 changed files with 2 additions and 1 deletions
|
@ -72,9 +72,10 @@ unsigned install_e820_map(unsigned max_entries, struct e820entry *entries)
|
|||
entries[num_entries].type = E820_RAM;
|
||||
else if (res_desc->type == RES_MEM_RESERVED)
|
||||
entries[num_entries].type = E820_RESERVED;
|
||||
|
||||
num_entries++;
|
||||
}
|
||||
hdr = get_next_hob(hdr);
|
||||
num_entries++;
|
||||
}
|
||||
|
||||
/* Mark PCIe ECAM address range as reserved */
|
||||
|
|
Loading…
Reference in a new issue