On 2/7/25 11:01 PM, Andrew Cooper wrote:
Without this, RISC-V isn't running boot time selftests when they're compiled
in.

Signed-off-by: Andrew Cooper<[email protected]>
---
CC: Oleksii Kurochko<[email protected]>
CC: Anthony PERARD<[email protected]>
CC: Michal Orzel<[email protected]>
CC: Jan Beulich<[email protected]>
CC: Julien Grall<[email protected]>
CC: Roger Pau MonnĂ©<[email protected]>
CC: Stefano Stabellini<[email protected]>

https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/1660821676

For-4.20.  Boot selftests are new in 4.20, and work in each other
archtiecture.

LGTM:

Reviewed-By: Oleksii Kurochko<[email protected]>

Thanks.

~ Oleksii


---
  xen/arch/riscv/setup.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/xen/arch/riscv/setup.c b/xen/arch/riscv/setup.c
index 38ca4f3baa1b..f2b6e684ac69 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");

Reply via email to