Message ID | 20250207220122.380214-2-andrew.cooper3@citrix.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | RISCV: Bugfixes and UBSAN | expand |
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<andrew.cooper3@citrix.com> > --- > CC: Oleksii Kurochko<oleksii.kurochko@gmail.com> > CC: Anthony PERARD<anthony.perard@vates.tech> > CC: Michal Orzel<michal.orzel@amd.com> > CC: Jan Beulich<jbeulich@suse.com> > CC: Julien Grall<julien@xen.org> > CC: Roger Pau Monné<roger.pau@citrix.com> > CC: Stefano Stabellini<sstabellini@kernel.org> > > 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<oleksii.kurochko@gmail.com> 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");
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");
Without this, RISC-V isn't running boot time selftests when they're compiled in. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> --- CC: Oleksii Kurochko <oleksii.kurochko@gmail.com> CC: Anthony PERARD <anthony.perard@vates.tech> CC: Michal Orzel <michal.orzel@amd.com> CC: Jan Beulich <jbeulich@suse.com> CC: Julien Grall <julien@xen.org> CC: Roger Pau Monné <roger.pau@citrix.com> CC: Stefano Stabellini <sstabellini@kernel.org> 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. --- xen/arch/riscv/setup.c | 2 ++ 1 file changed, 2 insertions(+)