diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-05-05 06:33:10 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-05-05 06:57:12 -0400 |
commit | f6869e7fe657bd977e72954cd78c5871a6a4f71d (patch) | |
tree | 1e34a4bb36cde4b541d7344599e65b541bb4bee7 /arch/powerpc/lib/memcpy_64.S | |
parent | 5a4e58bc693f04aa650219784e5e339e0db6b902 (diff) | |
parent | cec4b7eaf09d330e94e8e94133d360e6f1855974 (diff) |
Merge remote-tracking branch 'anton/abiv2' into next
This series adds support for building the powerpc 64-bit
LE kernel using the new ABI v2. We already supported
running ABI v2 userspace programs but this adds support
for building the kernel itself using the new ABI.
Diffstat (limited to 'arch/powerpc/lib/memcpy_64.S')
-rw-r--r-- | arch/powerpc/lib/memcpy_64.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/lib/memcpy_64.S b/arch/powerpc/lib/memcpy_64.S index dc4ba7953b92..32a06ec395d2 100644 --- a/arch/powerpc/lib/memcpy_64.S +++ b/arch/powerpc/lib/memcpy_64.S | |||
@@ -10,12 +10,12 @@ | |||
10 | #include <asm/ppc_asm.h> | 10 | #include <asm/ppc_asm.h> |
11 | 11 | ||
12 | .align 7 | 12 | .align 7 |
13 | _GLOBAL(memcpy) | 13 | _GLOBAL_TOC(memcpy) |
14 | BEGIN_FTR_SECTION | 14 | BEGIN_FTR_SECTION |
15 | #ifdef __LITTLE_ENDIAN__ | 15 | #ifdef __LITTLE_ENDIAN__ |
16 | cmpdi cr7,r5,0 | 16 | cmpdi cr7,r5,0 |
17 | #else | 17 | #else |
18 | std r3,48(r1) /* save destination pointer for return value */ | 18 | std r3,-STACKFRAMESIZE+STK_REG(R31)(r1) /* save destination pointer for return value */ |
19 | #endif | 19 | #endif |
20 | FTR_SECTION_ELSE | 20 | FTR_SECTION_ELSE |
21 | #ifndef SELFTEST | 21 | #ifndef SELFTEST |
@@ -88,7 +88,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_UNALIGNED_LD_STD) | |||
88 | 2: bf cr7*4+3,3f | 88 | 2: bf cr7*4+3,3f |
89 | lbz r9,8(r4) | 89 | lbz r9,8(r4) |
90 | stb r9,0(r3) | 90 | stb r9,0(r3) |
91 | 3: ld r3,48(r1) /* return dest pointer */ | 91 | 3: ld r3,-STACKFRAMESIZE+STK_REG(R31)(r1) /* return dest pointer */ |
92 | blr | 92 | blr |
93 | 93 | ||
94 | .Lsrc_unaligned: | 94 | .Lsrc_unaligned: |
@@ -171,7 +171,7 @@ END_FTR_SECTION_IFCLR(CPU_FTR_UNALIGNED_LD_STD) | |||
171 | 2: bf cr7*4+3,3f | 171 | 2: bf cr7*4+3,3f |
172 | rotldi r9,r9,8 | 172 | rotldi r9,r9,8 |
173 | stb r9,0(r3) | 173 | stb r9,0(r3) |
174 | 3: ld r3,48(r1) /* return dest pointer */ | 174 | 3: ld r3,-STACKFRAMESIZE+STK_REG(R31)(r1) /* return dest pointer */ |
175 | blr | 175 | blr |
176 | 176 | ||
177 | .Ldst_unaligned: | 177 | .Ldst_unaligned: |
@@ -216,6 +216,6 @@ END_FTR_SECTION_IFCLR(CPU_FTR_UNALIGNED_LD_STD) | |||
216 | 3: bf cr7*4+3,4f | 216 | 3: bf cr7*4+3,4f |
217 | lbz r0,0(r4) | 217 | lbz r0,0(r4) |
218 | stb r0,0(r3) | 218 | stb r0,0(r3) |
219 | 4: ld r3,48(r1) /* return dest pointer */ | 219 | 4: ld r3,-STACKFRAMESIZE+STK_REG(R31)(r1) /* return dest pointer */ |
220 | blr | 220 | blr |
221 | #endif | 221 | #endif |