aarch64: Return the hidden RAM for UEFI

Size of `memory` node in FDT was reduced by 4MiB. Now it is returned.
In memory regions, a `Ram` region of 4MiB was created at address 0. Now
it is removed.

Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
Michael Zhao
2022-04-05 10:48:55 +08:00
committed by Rob Bradford
parent 7d7bfb2034
commit 6e562eb1e7
2 changed files with 18 additions and 33 deletions
-4
View File
@@ -241,10 +241,6 @@ fn create_memory_node(
for memory_region in numa_node.unwrap().memory_regions.iter() {
let memory_region_start_addr: u64 = memory_region.start_addr().raw_value();
let memory_region_size: u64 = memory_region.size() as u64;
// RAM at 0-4M is hidden to the guest for edk2
if memory_region_start_addr == 0 {
continue;
}
mem_reg_prop.push(memory_region_start_addr);
mem_reg_prop.push(memory_region_size);
// Set the node address the first non-zero regison address