diff options
Diffstat (limited to 'arch/powerpc/lib/checksum_64.S')
-rw-r--r-- | arch/powerpc/lib/checksum_64.S | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/arch/powerpc/lib/checksum_64.S b/arch/powerpc/lib/checksum_64.S index 18245af38aea..167f72555d60 100644 --- a/arch/powerpc/lib/checksum_64.S +++ b/arch/powerpc/lib/checksum_64.S | |||
@@ -65,9 +65,6 @@ _GLOBAL(csum_tcpudp_magic) | |||
65 | srwi r3,r3,16 | 65 | srwi r3,r3,16 |
66 | blr | 66 | blr |
67 | 67 | ||
68 | #define STACKFRAMESIZE 256 | ||
69 | #define STK_REG(i) (112 + ((i)-14)*8) | ||
70 | |||
71 | /* | 68 | /* |
72 | * Computes the checksum of a memory block at buff, length len, | 69 | * Computes the checksum of a memory block at buff, length len, |
73 | * and adds in "sum" (32-bit). | 70 | * and adds in "sum" (32-bit). |
@@ -114,9 +111,9 @@ _GLOBAL(csum_partial) | |||
114 | mtctr r6 | 111 | mtctr r6 |
115 | 112 | ||
116 | stdu r1,-STACKFRAMESIZE(r1) | 113 | stdu r1,-STACKFRAMESIZE(r1) |
117 | std r14,STK_REG(r14)(r1) | 114 | std r14,STK_REG(R14)(r1) |
118 | std r15,STK_REG(r15)(r1) | 115 | std r15,STK_REG(R15)(r1) |
119 | std r16,STK_REG(r16)(r1) | 116 | std r16,STK_REG(R16)(r1) |
120 | 117 | ||
121 | ld r6,0(r3) | 118 | ld r6,0(r3) |
122 | ld r9,8(r3) | 119 | ld r9,8(r3) |
@@ -175,9 +172,9 @@ _GLOBAL(csum_partial) | |||
175 | adde r0,r0,r15 | 172 | adde r0,r0,r15 |
176 | adde r0,r0,r16 | 173 | adde r0,r0,r16 |
177 | 174 | ||
178 | ld r14,STK_REG(r14)(r1) | 175 | ld r14,STK_REG(R14)(r1) |
179 | ld r15,STK_REG(r15)(r1) | 176 | ld r15,STK_REG(R15)(r1) |
180 | ld r16,STK_REG(r16)(r1) | 177 | ld r16,STK_REG(R16)(r1) |
181 | addi r1,r1,STACKFRAMESIZE | 178 | addi r1,r1,STACKFRAMESIZE |
182 | 179 | ||
183 | andi. r4,r4,63 | 180 | andi. r4,r4,63 |
@@ -299,9 +296,9 @@ dest; sth r6,0(r4) | |||
299 | mtctr r6 | 296 | mtctr r6 |
300 | 297 | ||
301 | stdu r1,-STACKFRAMESIZE(r1) | 298 | stdu r1,-STACKFRAMESIZE(r1) |
302 | std r14,STK_REG(r14)(r1) | 299 | std r14,STK_REG(R14)(r1) |
303 | std r15,STK_REG(r15)(r1) | 300 | std r15,STK_REG(R15)(r1) |
304 | std r16,STK_REG(r16)(r1) | 301 | std r16,STK_REG(R16)(r1) |
305 | 302 | ||
306 | source; ld r6,0(r3) | 303 | source; ld r6,0(r3) |
307 | source; ld r9,8(r3) | 304 | source; ld r9,8(r3) |
@@ -382,9 +379,9 @@ dest; std r16,56(r4) | |||
382 | adde r0,r0,r15 | 379 | adde r0,r0,r15 |
383 | adde r0,r0,r16 | 380 | adde r0,r0,r16 |
384 | 381 | ||
385 | ld r14,STK_REG(r14)(r1) | 382 | ld r14,STK_REG(R14)(r1) |
386 | ld r15,STK_REG(r15)(r1) | 383 | ld r15,STK_REG(R15)(r1) |
387 | ld r16,STK_REG(r16)(r1) | 384 | ld r16,STK_REG(R16)(r1) |
388 | addi r1,r1,STACKFRAMESIZE | 385 | addi r1,r1,STACKFRAMESIZE |
389 | 386 | ||
390 | andi. r5,r5,63 | 387 | andi. r5,r5,63 |