]> xenbits.xensource.com Git - xen.git/commitdiff
xen/riscv: initialize bootinfo from dtb
authorOleksii Kurochko <oleksii.kurochko@gmail.com>
Tue, 15 Oct 2024 12:23:19 +0000 (14:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Oct 2024 12:23:19 +0000 (14:23 +0200)
Parse DTB during startup, allowing memory banks and reserved
memory regions to be set up, along with early device tree node
(chosen, "xen,domain", "reserved-memory", etc) handling.

Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/riscv/setup.c

index f531ca38ee1bb3c1bae8c2ce772a5b190cd12207..63feea14c77b2481bbe8d76fd3bd968605cb0768 100644 (file)
@@ -50,6 +50,9 @@ void __init noreturn start_xen(unsigned long bootcpu_id,
                           _end - _start, false) )
         panic("Failed to add BOOTMOD_XEN\n");
 
+    if ( !boot_fdt_info(device_tree_flattened, dtb_addr) )
+        BUG();
+
     printk("All set up\n");
 
     machine_halt();