From: Andrew Cooper Date: Fri, 7 Feb 2025 14:35:37 +0000 (+0000) Subject: RISCV/boot: Run constructors during setup X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d80498066f23b66f76b2ef87435ec815889245b8;p=people%2Froyger%2Fxen.git RISCV/boot: Run constructors during setup Without this, RISC-V isn't running boot time selftests when they're compiled in. Signed-off-by: Andrew Cooper Reviewed-by: Oleksii Kurochko Release-Acked-by: Oleksii Kurochko --- diff --git a/xen/arch/riscv/setup.c b/xen/arch/riscv/setup.c index 38ca4f3baa..f2b6e684ac 100644 --- a/xen/arch/riscv/setup.c +++ b/xen/arch/riscv/setup.c @@ -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");