diff options
Diffstat (limited to 'arch/microblaze/lib/memcpy.c')
-rw-r--r-- | arch/microblaze/lib/memcpy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/microblaze/lib/memcpy.c b/arch/microblaze/lib/memcpy.c index cc495d7d99cc..52746e718dfa 100644 --- a/arch/microblaze/lib/memcpy.c +++ b/arch/microblaze/lib/memcpy.c | |||
@@ -63,8 +63,8 @@ void *memcpy(void *v_dst, const void *v_src, __kernel_size_t c) | |||
63 | if (likely(c >= 4)) { | 63 | if (likely(c >= 4)) { |
64 | unsigned value, buf_hold; | 64 | unsigned value, buf_hold; |
65 | 65 | ||
66 | /* Align the dstination to a word boundry. */ | 66 | /* Align the destination to a word boundary. */ |
67 | /* This is done in an endian independant manner. */ | 67 | /* This is done in an endian independent manner. */ |
68 | switch ((unsigned long)dst & 3) { | 68 | switch ((unsigned long)dst & 3) { |
69 | case 1: | 69 | case 1: |
70 | *dst++ = *src++; | 70 | *dst++ = *src++; |
@@ -80,7 +80,7 @@ void *memcpy(void *v_dst, const void *v_src, __kernel_size_t c) | |||
80 | i_dst = (void *)dst; | 80 | i_dst = (void *)dst; |
81 | 81 | ||
82 | /* Choose a copy scheme based on the source */ | 82 | /* Choose a copy scheme based on the source */ |
83 | /* alignment relative to dstination. */ | 83 | /* alignment relative to destination. */ |
84 | switch ((unsigned long)src & 3) { | 84 | switch ((unsigned long)src & 3) { |
85 | case 0x0: /* Both byte offsets are aligned */ | 85 | case 0x0: /* Both byte offsets are aligned */ |
86 | i_src = (const void *)src; | 86 | i_src = (const void *)src; |
@@ -173,7 +173,7 @@ void *memcpy(void *v_dst, const void *v_src, __kernel_size_t c) | |||
173 | } | 173 | } |
174 | 174 | ||
175 | /* Finish off any remaining bytes */ | 175 | /* Finish off any remaining bytes */ |
176 | /* simple fast copy, ... unless a cache boundry is crossed */ | 176 | /* simple fast copy, ... unless a cache boundary is crossed */ |
177 | switch (c) { | 177 | switch (c) { |
178 | case 3: | 178 | case 3: |
179 | *dst++ = *src++; | 179 | *dst++ = *src++; |