mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-20 17:11:45 +00:00
bootstrap: skip zero sized late_ram_regions
On some platforms late_ram_regions are initialized to zero which leads bootstrap to insert zero based/sized ram regions wich later caused the following warning in core: ! unable to register RAM region base=0x0 size=0x0 ! unable to exclude I/O range from RAM: base=0x0 size=0x0 Therefore, omitt adding zero sized regions to the boot info. issue #5496
This commit is contained in:
parent
a0c3b77f0e
commit
adbfd05130
@ -245,5 +245,6 @@ Platform::Platform()
|
||||
ram_alloc.for_each_free_region([&] (Memory_region const & r) {
|
||||
bootinfo.ram_regions.add(r); });
|
||||
board.late_ram_regions.for_each([&] (unsigned, Memory_region const & r) {
|
||||
bootinfo.ram_regions.add(r); });
|
||||
/* is zero initialized on some platforms */
|
||||
if (r.size) bootinfo.ram_regions.add(r); });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user