xen: disable interrupts early, as start_kernel expects
Subsystems (2)
Author: Jeremy Fitzhardinge <[email protected]> AuthorDate: Wed, 25 Feb 2009 09:42:25 -0800 Commit: Ingo Molnar <[email protected]> CommitDate: Wed, 25 Feb 2009 18:51:57 +0100
xen: disable interrupts early, as start_kernel expects
This avoids a lockdep warning from:
if (DEBUG_LOCKS_WARN_ON(unlikely(!early_boot_irqs_enabled))) return;
in trace_hardirqs_on_caller();
Signed-off-by Jeremy Fitzhardinge <[email protected]>
Cc Mark McLoughlin <[email protected]>
Cc Xen-devel <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/xen/enlighten.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
arch/x86/xen/enlighten.c +3 -0
@@ -1672,6 +1672,9 @@ asmlinkage void __init xen_start_kernel(void)possible map and a non-dummy shared_info. */ per_cpu (xen_vcpu,0 ) = &HYPERVISOR_shared_info->vcpu_info[0 ]; +local_irq_disable (); +early_boot_irqs_off (); +xen_raw_console_write ("mapping kernel into physical memory\n" ); pgd =xen_setup_kernel_pagetable (pgd, xen_start_info->nr_pages);