diff options
Diffstat (limited to 'arch/arc/lib/memset.S')
-rw-r--r-- | arch/arc/lib/memset.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arc/lib/memset.S b/arch/arc/lib/memset.S index 9b2d88d2e141..d36bd43fc98d 100644 --- a/arch/arc/lib/memset.S +++ b/arch/arc/lib/memset.S | |||
@@ -6,11 +6,11 @@ | |||
6 | * published by the Free Software Foundation. | 6 | * published by the Free Software Foundation. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <asm/linkage.h> | 9 | #include <linux/linkage.h> |
10 | 10 | ||
11 | #define SMALL 7 /* Must be at least 6 to deal with alignment/loop issues. */ | 11 | #define SMALL 7 /* Must be at least 6 to deal with alignment/loop issues. */ |
12 | 12 | ||
13 | ARC_ENTRY memset | 13 | ENTRY(memset) |
14 | mov_s r4,r0 | 14 | mov_s r4,r0 |
15 | or r12,r0,r2 | 15 | or r12,r0,r2 |
16 | bmsk.f r12,r12,1 | 16 | bmsk.f r12,r12,1 |
@@ -46,14 +46,14 @@ ARC_ENTRY memset | |||
46 | stb.ab r1,[r4,1] | 46 | stb.ab r1,[r4,1] |
47 | .Ltiny_end: | 47 | .Ltiny_end: |
48 | j_s [blink] | 48 | j_s [blink] |
49 | ARC_EXIT memset | 49 | END(memset) |
50 | 50 | ||
51 | ; memzero: @r0 = mem, @r1 = size_t | 51 | ; memzero: @r0 = mem, @r1 = size_t |
52 | ; memset: @r0 = mem, @r1 = char, @r2 = size_t | 52 | ; memset: @r0 = mem, @r1 = char, @r2 = size_t |
53 | 53 | ||
54 | ARC_ENTRY memzero | 54 | ENTRY(memzero) |
55 | ; adjust bzero args to memset args | 55 | ; adjust bzero args to memset args |
56 | mov r2, r1 | 56 | mov r2, r1 |
57 | mov r1, 0 | 57 | mov r1, 0 |
58 | b memset ;tail call so need to tinker with blink | 58 | b memset ;tail call so need to tinker with blink |
59 | ARC_EXIT memzero | 59 | END(memzero) |