diff options
author | Michal Simek <monstr@monstr.eu> | 2011-10-02 07:07:02 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2011-10-14 06:24:34 -0400 |
commit | cb5edfe3e553d930f9a13cb75cfe395ee38cde23 (patch) | |
tree | d239df9396d0a5e1100690400234a18f0ec7707e /arch/microblaze | |
parent | 90fcf383636f452ab027656e4fb7e95c79aa878c (diff) |
microblaze: Use delay slot in __strnlen_user, __strncpy_user
Use delay slot to speedup if maxlen is zero.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/lib/uaccess_old.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/microblaze/lib/uaccess_old.S b/arch/microblaze/lib/uaccess_old.S index 142492ec270f..f037266cdaf3 100644 --- a/arch/microblaze/lib/uaccess_old.S +++ b/arch/microblaze/lib/uaccess_old.S | |||
@@ -34,8 +34,8 @@ __strncpy_user: | |||
34 | * r3 - temp count | 34 | * r3 - temp count |
35 | * r4 - temp val | 35 | * r4 - temp val |
36 | */ | 36 | */ |
37 | beqid r7,3f | ||
37 | addik r3,r7,0 /* temp_count = len */ | 38 | addik r3,r7,0 /* temp_count = len */ |
38 | beqi r3,3f | ||
39 | 1: | 39 | 1: |
40 | lbu r4,r6,r0 | 40 | lbu r4,r6,r0 |
41 | sb r4,r5,r0 | 41 | sb r4,r5,r0 |
@@ -77,8 +77,8 @@ __strncpy_user: | |||
77 | .type __strnlen_user, @function | 77 | .type __strnlen_user, @function |
78 | .align 4; | 78 | .align 4; |
79 | __strnlen_user: | 79 | __strnlen_user: |
80 | beqid r6,3f | ||
80 | addik r3,r6,0 | 81 | addik r3,r6,0 |
81 | beqi r3,3f | ||
82 | 1: | 82 | 1: |
83 | lbu r4,r5,r0 | 83 | lbu r4,r5,r0 |
84 | beqid r4,2f /* break on NUL */ | 84 | beqid r4,2f /* break on NUL */ |