diff options
author | Tejun Heo <tj@kernel.org> | 2009-07-03 18:13:18 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-07-03 18:13:18 -0400 |
commit | c43768cbb7655ea5ff782ae250f6e2ef4297cf98 (patch) | |
tree | 3982e41dde3eecaa3739a5d1a8ed18d04bd74f01 /arch/cris/arch-v32/lib/strcmp.S | |
parent | 1a8dd307cc0a2119be4e578c517795464e6dabba (diff) | |
parent | 746a99a5af60ee676afa2ba469ccd1373493c7e7 (diff) |
Merge branch 'master' into for-next
Pull linus#master to merge PER_CPU_DEF_ATTRIBUTES and alpha build fix
changes. As alpha in percpu tree uses 'weak' attribute instead of
inline assembly, there's no need for __used attribute.
Conflicts:
arch/alpha/include/asm/percpu.h
arch/mn10300/kernel/vmlinux.lds.S
include/linux/percpu-defs.h
Diffstat (limited to 'arch/cris/arch-v32/lib/strcmp.S')
-rw-r--r-- | arch/cris/arch-v32/lib/strcmp.S | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/cris/arch-v32/lib/strcmp.S b/arch/cris/arch-v32/lib/strcmp.S new file mode 100644 index 000000000000..8f7a1ee62591 --- /dev/null +++ b/arch/cris/arch-v32/lib/strcmp.S | |||
@@ -0,0 +1,21 @@ | |||
1 | ; strcmp.S -- CRISv32 version. | ||
2 | ; Copyright (C) 2008 AXIS Communications AB | ||
3 | ; Written by Edgar E. Iglesias | ||
4 | ; | ||
5 | ; This source code is licensed under the GNU General Public License, | ||
6 | ; Version 2. See the file COPYING for more details. | ||
7 | |||
8 | .global strcmp | ||
9 | .type strcmp,@function | ||
10 | strcmp: | ||
11 | 1: | ||
12 | move.b [$r10+], $r12 | ||
13 | seq $r13 | ||
14 | sub.b [$r11+], $r12 | ||
15 | or.b $r12, $r13 | ||
16 | beq 1b | ||
17 | nop | ||
18 | |||
19 | ret | ||
20 | movs.b $r12, $r10 | ||
21 | .size strcmp, . - strcmp | ||