diff options
Diffstat (limited to 'arch/arm/lib')
-rw-r--r-- | arch/arm/lib/csumpartialcopy.S | 6 | ||||
-rw-r--r-- | arch/arm/lib/csumpartialcopyuser.S | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/arch/arm/lib/csumpartialcopy.S b/arch/arm/lib/csumpartialcopy.S index 80aa2c795155..d03fc71fc88c 100644 --- a/arch/arm/lib/csumpartialcopy.S +++ b/arch/arm/lib/csumpartialcopy.S | |||
@@ -18,13 +18,11 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | .macro save_regs | 20 | .macro save_regs |
21 | mov ip, sp | 21 | stmfd sp!, {r1, r4 - r8, lr} |
22 | stmfd sp!, {r1, r4 - r8, fp, ip, lr, pc} | ||
23 | sub fp, ip, #4 | ||
24 | .endm | 22 | .endm |
25 | 23 | ||
26 | .macro load_regs | 24 | .macro load_regs |
27 | ldmfd sp, {r1, r4 - r8, fp, sp, pc} | 25 | ldmfd sp!, {r1, r4 - r8, pc} |
28 | .endm | 26 | .endm |
29 | 27 | ||
30 | .macro load1b, reg1 | 28 | .macro load1b, reg1 |
diff --git a/arch/arm/lib/csumpartialcopyuser.S b/arch/arm/lib/csumpartialcopyuser.S index e8b9c24551c2..14677fb4b0c4 100644 --- a/arch/arm/lib/csumpartialcopyuser.S +++ b/arch/arm/lib/csumpartialcopyuser.S | |||
@@ -18,13 +18,11 @@ | |||
18 | .text | 18 | .text |
19 | 19 | ||
20 | .macro save_regs | 20 | .macro save_regs |
21 | mov ip, sp | 21 | stmfd sp!, {r1, r2, r4 - r8, lr} |
22 | stmfd sp!, {r1 - r2, r4 - r8, fp, ip, lr, pc} | ||
23 | sub fp, ip, #4 | ||
24 | .endm | 22 | .endm |
25 | 23 | ||
26 | .macro load_regs | 24 | .macro load_regs |
27 | ldmfd sp, {r1, r2, r4-r8, fp, sp, pc} | 25 | ldmfd sp!, {r1, r2, r4 - r8, pc} |
28 | .endm | 26 | .endm |
29 | 27 | ||
30 | .macro load1b, reg1 | 28 | .macro load1b, reg1 |