[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xen: arm: Call init_xen_time earlier
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1355926578 0 # Node ID 102e2894e12a45898db69887f923a1338dfb7c9c # Parent d0a4968e857893d9b159061f4bc7755675728709 xen: arm: Call init_xen_time earlier If we panic before calling init_xen_time then the "Rebooting in 5 seconds" delay ends up calling udelay which uses cntfrq before it has been initialised resulting in a divide by zero. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r d0a4968e8578 -r 102e2894e12a xen/arch/arm/setup.c --- a/xen/arch/arm/setup.c Wed Dec 19 14:16:17 2012 +0000 +++ b/xen/arch/arm/setup.c Wed Dec 19 14:16:18 2012 +0000 @@ -219,6 +219,8 @@ void __init start_xen(unsigned long boot console_init_preirq(); #endif + init_xen_time(); + gic_init(); make_cpus_ready(cpus, boot_phys_offset); @@ -227,8 +229,6 @@ void __init start_xen(unsigned long boot set_current((struct vcpu *)0xfffff000); /* debug sanity */ idle_vcpu[0] = current; - init_xen_time(); - setup_mm(atag_paddr, fdt_size); /* Setup Hyp vector base */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |