]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
RISCV/boot: Run constructors during setup
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 7 Feb 2025 14:35:37 +0000 (14:35 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 10 Feb 2025 23:40:12 +0000 (23:40 +0000)
Without this, RISC-V isn't running boot time selftests when they're compiled
in.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
xen/arch/riscv/setup.c

index 38ca4f3baa1b55cb1cf49bd279607e982ce22ec7..f2b6e684ac6946a2a4aaa825fa4f17fdf8c700fc 100644 (file)
@@ -109,6 +109,8 @@ void __init noreturn start_xen(unsigned long bootcpu_id,
      */
     system_state = SYS_STATE_boot;
 
+    init_constructors();
+
     if ( acpi_disabled )
     {
         printk("Booting using Device Tree\n");