Commit 22acc4e65043d436bc286e6059960fa533e37356

Authored by Catalin Marinas
Committed by Russell King
1 parent 4e6a0c397f

[ARM] 5231/1: Do not save the frame pointer in the csum_partial_copy_* functions

Since the other assembly functions do not seem to save the frame
pointer onto the stack, this patch changes the csum_partial_copy_*
functions to behave in the same way.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

Showing 2 changed files with 4 additions and 8 deletions Side-by-side Diff

arch/arm/lib/csumpartialcopy.S
... ... @@ -18,13 +18,11 @@
18 18 */
19 19  
20 20 .macro save_regs
21   - mov ip, sp
22   - stmfd sp!, {r1, r4 - r8, fp, ip, lr, pc}
23   - sub fp, ip, #4
  21 + stmfd sp!, {r1, r4 - r8, lr}
24 22 .endm
25 23  
26 24 .macro load_regs
27   - ldmfd sp, {r1, r4 - r8, fp, sp, pc}
  25 + ldmfd sp!, {r1, r4 - r8, pc}
28 26 .endm
29 27  
30 28 .macro load1b, reg1
arch/arm/lib/csumpartialcopyuser.S
... ... @@ -18,13 +18,11 @@
18 18 .text
19 19  
20 20 .macro save_regs
21   - mov ip, sp
22   - stmfd sp!, {r1 - r2, r4 - r8, fp, ip, lr, pc}
23   - sub fp, ip, #4
  21 + stmfd sp!, {r1, r2, r4 - r8, lr}
24 22 .endm
25 23  
26 24 .macro load_regs
27   - ldmfd sp, {r1, r2, r4-r8, fp, sp, pc}
  25 + ldmfd sp!, {r1, r2, r4 - r8, pc}
28 26 .endm
29 27  
30 28 .macro load1b, reg1