]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
Revert "xen/arm: setup: Add Xen as boot module before printing all boot modules"
authorLuca Miccio <206497@studenti.unimore.it>
Mon, 6 Jan 2020 13:25:29 +0000 (14:25 +0100)
committerLuca Miccio <206497@studenti.unimore.it>
Mon, 6 Jan 2020 13:25:29 +0000 (14:25 +0100)
This reverts commit 48fb2a9deba11ee48dde21c5c1aa93b4d4e1043b.

xen/arch/arm/setup.c

index 3c899cd4a0842e4525812e2f8ed2313826df3356..d9bbb672b3f688bb83801dc82608956701142a8a 100644 (file)
@@ -816,18 +816,18 @@ void __init start_xen(unsigned long boot_phys_offset,
               "Please check your bootloader.\n",
               fdt_paddr);
 
-    /* Register Xen's load address as a boot module. */
-    xen_bootmodule = add_boot_module(BOOTMOD_XEN,
-                             (paddr_t)(uintptr_t)(_start + boot_phys_offset),
-                             (paddr_t)(uintptr_t)(_end - _start), false);
-    BUG_ON(!xen_bootmodule);
-
     fdt_size = boot_fdt_info(device_tree_flattened, fdt_paddr);
 
     cmdline = boot_fdt_cmdline(device_tree_flattened);
     printk("Command line: %s\n", cmdline);
     cmdline_parse(cmdline);
 
+    /* Register Xen's load address as a boot module. */
+    xen_bootmodule = add_boot_module(BOOTMOD_XEN,
+                             (paddr_t)(uintptr_t)(_start + boot_phys_offset),
+                             (paddr_t)(uintptr_t)(_end - _start + 1), false);
+    BUG_ON(!xen_bootmodule);
+
     setup_mm();
 
     /* Parse the ACPI tables for possible boot-time configuration */