[ARM] 5231/1: Do not save the frame pointer in the csum_partial_copy_* functions
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 29 Aug 2008 17:31:27 +0000 (18:31 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 1 Sep 2008 11:06:35 +0000 (12:06 +0100)
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>
arch/arm/lib/csumpartialcopy.S
arch/arm/lib/csumpartialcopyuser.S

index 80aa2c795155468b041dec303a218744b8f75577..d03fc71fc88c9d5167290ee0d2228f5efca820ec 100644 (file)
  */
 
                .macro  save_regs
-               mov     ip, sp
-               stmfd   sp!, {r1, r4 - r8, fp, ip, lr, pc}
-               sub     fp, ip, #4
+               stmfd   sp!, {r1, r4 - r8, lr}
                .endm
 
                .macro  load_regs
-               ldmfd   sp, {r1, r4 - r8, fp, sp, pc}
+               ldmfd   sp!, {r1, r4 - r8, pc}
                .endm
 
                .macro  load1b, reg1
index e8b9c24551c28156559a9ff4ed5a4861345ccd70..14677fb4b0c4f504bc09ba19e2dcc5acd3362393 100644 (file)
                .text
 
                .macro  save_regs
-               mov     ip, sp
-               stmfd   sp!, {r1 - r2, r4 - r8, fp, ip, lr, pc}
-               sub     fp, ip, #4
+               stmfd   sp!, {r1, r2, r4 - r8, lr}
                .endm
 
                .macro  load_regs
-               ldmfd   sp, {r1, r2, r4-r8, fp, sp, pc}
+               ldmfd   sp!, {r1, r2, r4 - r8, pc}
                .endm
 
                .macro  load1b, reg1