Commit 22acc4e6 authored by Catalin Marinas's avatar Catalin Marinas Committed by Russell King

[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: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 4e6a0c39
...@@ -18,13 +18,11 @@ ...@@ -18,13 +18,11 @@
*/ */
.macro save_regs .macro save_regs
mov ip, sp stmfd sp!, {r1, r4 - r8, lr}
stmfd sp!, {r1, r4 - r8, fp, ip, lr, pc}
sub fp, ip, #4
.endm .endm
.macro load_regs .macro load_regs
ldmfd sp, {r1, r4 - r8, fp, sp, pc} ldmfd sp!, {r1, r4 - r8, pc}
.endm .endm
.macro load1b, reg1 .macro load1b, reg1
......
...@@ -18,13 +18,11 @@ ...@@ -18,13 +18,11 @@
.text .text
.macro save_regs .macro save_regs
mov ip, sp stmfd sp!, {r1, r2, r4 - r8, lr}
stmfd sp!, {r1 - r2, r4 - r8, fp, ip, lr, pc}
sub fp, ip, #4
.endm .endm
.macro load_regs .macro load_regs
ldmfd sp, {r1, r2, r4-r8, fp, sp, pc} ldmfd sp!, {r1, r2, r4 - r8, pc}
.endm .endm
.macro load1b, reg1 .macro load1b, reg1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment