xen: arm32: Don't bother with the bootloader provided ARM-Linux machine type
authorIan Campbell <ian.campbell@citrix.com>
Fri, 15 Feb 2013 13:32:07 +0000 (13:32 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 15 Feb 2013 13:32:07 +0000 (13:32 +0000)
Everything is DTB based and on 64-bit there is no such concept even in
Linux.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/arm32/head.S
xen/arch/arm/setup.c
xen/arch/arm/smpboot.c

index 20e9da6228ad69b1597257b4488bd82b7c22d21c..92fc36c6d68111634bd5ee508391601904e77bb3 100644 (file)
@@ -72,7 +72,7 @@ past_zImage:
         cpsid aif                    /* Disable all interrupts */
 
         /* Save the bootloader arguments in less-clobberable registers */
-        mov   r7, r1                 /* r7 := ARM-linux machine type */
+        /* No need to save r1 == Unused ARM-linux machine type */
         mov   r8, r2                 /* r8 := ATAG base address */
 
         /* Find out where we are */
@@ -334,9 +334,8 @@ launch:
         add   sp, #STACK_SIZE        /* (which grows down from the top). */
         sub   sp, #CPUINFO_sizeof    /* Make room for CPU save record */
         mov   r0, r10                /* Marshal args: - phys_offset */
-        mov   r1, r7                 /*               - machine type */
-        mov   r2, r8                 /*               - ATAG address */
-        movs  r3, r12                /*               - CPU ID */
+        mov   r1, r8                 /*               - ATAG address */
+        movs  r2, r12                /*               - CPU ID */
         beq   start_xen              /* and disappear into the land of C */
         b     start_secondary        /* (to the appropriate entry point) */
 
index e1ab7f642a1d69f6e6c41cf8b115b5bbd306954f..7e3586057a383240affa982b0ff530e2e1d573c0 100644 (file)
@@ -329,7 +329,6 @@ void __init setup_cache(void)
 
 /* C entry point for boot CPU */
 void __init start_xen(unsigned long boot_phys_offset,
-                      unsigned long arm_type,
                       unsigned long atag_paddr,
                       unsigned long cpuid)
 {
index c7a586b3b80bc53a3b2183bd4c6143f53f7f91f9..da4880c4c21356b506e62d13129a6edc15c58ce7 100644 (file)
@@ -132,7 +132,6 @@ make_cpus_ready(unsigned int max_cpus, unsigned long boot_phys_offset)
 
 /* Boot the current CPU */
 void __cpuinit start_secondary(unsigned long boot_phys_offset,
-                               unsigned long arm_type,
                                unsigned long atag_paddr,
                                unsigned long cpuid)
 {