]> xenbits.xensource.com Git - xen.git/commitdiff
ARM/boot: Don't poison 'current' during early boot
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 15 Jan 2020 18:43:58 +0000 (18:43 +0000)
committerJulien Grall <julien@xen.org>
Thu, 16 Jan 2020 12:43:36 +0000 (12:43 +0000)
This logic was inherited from x86 (which was updated several times since).
Unlike x86 (at the time) however, while NULL isn't mapped in ARM, 0xfffff000
is, making this actively dangerous.

Drop the logic entirely, and leave 'current' as NULL during early boot.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <julien@xen.org>
xen/arch/arm/setup.c

index 3c899cd4a0842e4525812e2f8ed2313826df3356..9dd3738d446f6bcc811e623504085c178bc3d7e8 100644 (file)
@@ -798,9 +798,6 @@ void __init start_xen(unsigned long boot_phys_offset,
     percpu_init_areas();
     set_processor_id(0); /* needed early, for smp_processor_id() */
 
-    set_current((struct vcpu *)0xfffff000); /* debug sanity */
-    idle_vcpu[0] = current;
-
     setup_virtual_regions(NULL, NULL);
     /* Initialize traps early allow us to get backtrace when an error occurred */
     init_traps();