diff options
Diffstat (limited to 'arch/mips/lib/strlen_user.S')
-rw-r--r-- | arch/mips/lib/strlen_user.S | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips/lib/strlen_user.S b/arch/mips/lib/strlen_user.S index fdbb970f670d..e362dcdc69d1 100644 --- a/arch/mips/lib/strlen_user.S +++ b/arch/mips/lib/strlen_user.S | |||
@@ -3,8 +3,9 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (c) 1996, 1998, 1999, 2004 by Ralf Baechle | 6 | * Copyright (C) 1996, 1998, 1999, 2004 by Ralf Baechle |
7 | * Copyright (c) 1999 Silicon Graphics, Inc. | 7 | * Copyright (C) 1999 Silicon Graphics, Inc. |
8 | * Copyright (C) 2011 MIPS Technologies, Inc. | ||
8 | */ | 9 | */ |
9 | #include <asm/asm.h> | 10 | #include <asm/asm.h> |
10 | #include <asm/asm-offsets.h> | 11 | #include <asm/asm-offsets.h> |
@@ -28,9 +29,9 @@ LEAF(__strlen_user_asm) | |||
28 | 29 | ||
29 | FEXPORT(__strlen_user_nocheck_asm) | 30 | FEXPORT(__strlen_user_nocheck_asm) |
30 | move v0, a0 | 31 | move v0, a0 |
31 | 1: EX(lb, t0, (v0), .Lfault) | 32 | 1: EX(lbu, v1, (v0), .Lfault) |
32 | PTR_ADDIU v0, 1 | 33 | PTR_ADDIU v0, 1 |
33 | bnez t0, 1b | 34 | bnez v1, 1b |
34 | PTR_SUBU v0, a0 | 35 | PTR_SUBU v0, a0 |
35 | jr ra | 36 | jr ra |
36 | END(__strlen_user_asm) | 37 | END(__strlen_user_asm) |