Revert "ARM: proc-v7: Force misalignment of early stmia"
authorPhil Elwell <phil@raspberrypi.com>
Mon, 20 Sep 2021 10:18:41 +0000 (11:18 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 20 Sep 2021 16:06:58 +0000 (17:06 +0100)
This reverts commit fe4cc0ed5923d3b91d4cb25f8f6cbbf5a6f8c06f.

The speculative patch that this commit reverts is proving to not be
effective any more, so revert it and try a new approach.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
arch/arm/mm/proc-v7.S

index 3e77e8982df3e8e34439b0770a9688bff2c51d8e..28c9d32fa99a58081150ae7599569d21969a0e58 100644 (file)
@@ -287,8 +287,6 @@ __v7_ca17mp_setup:
        mov     r10, #0
 1:     adr     r0, __v7_setup_stack_ptr
        ldr     r12, [r0]
-       tst     r12, #0x1f
-       addeq   r12, r12, #4
        add     r12, r12, r0                    @ the local stack
        stmia   r12, {r1-r6, lr}                @ v7_invalidate_l1 touches r0-r6
        bl      v7_invalidate_l1
@@ -476,8 +474,6 @@ __v7_setup:
        adr     r0, __v7_setup_stack_ptr
        ldr     r12, [r0]
        add     r12, r12, r0                    @ the local stack
-       tst     r12, #0x1f
-       addeq   r12, r12, #4
        stmia   r12, {r1-r6, lr}                @ v7_invalidate_l1 touches r0-r6
        bl      v7_invalidate_l1
        ldmia   r12, {r1-r6, lr}
@@ -561,7 +557,7 @@ ENDPROC(__v7_setup)
        .bss
        .align  2
 __v7_setup_stack:
-       .space  4 * 8                           @ 7 registers + 1 spare
+       .space  4 * 7                           @ 7 registers
 
        __INITDATA