[platform][qemu-virt-riscv] seems the first 512K are now used by opensbi 1.1
Looks like this is described in /reserved_memory/mmode_resv@<address> as
patched by opensbi on top of the existing qemu provided dtb.
Future patch should parse this instead of hard coding it.
@@ -134,9 +134,9 @@ void platform_early_init(void) {
}
#if WITH_KERNEL_VM
- /* reserve the first 256K of ram which is marked protected by the PMP in firmware */
+ /* reserve the first 512K of ram which is marked protected by the PMP in firmware */
struct list_node list = LIST_INITIAL_VALUE(list);
- pmm_alloc_range(MEMBASE, 0x40000 / PAGE_SIZE, &list);
+ pmm_alloc_range(MEMBASE, 0x80000 / PAGE_SIZE, &list);
#endif
LTRACEF("done scanning FDT\n");
