Skip to content

Commit

Permalink
microblaze: Use delay slot in __strnlen_user, __strncpy_user
Browse files Browse the repository at this point in the history
Use delay slot to speedup if maxlen is zero.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
michalsimek committed Oct 14, 2011
1 parent 90fcf38 commit cb5edfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/microblaze/lib/uaccess_old.S
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ __strncpy_user:
* r3 - temp count
* r4 - temp val
*/
beqid r7,3f
addik r3,r7,0 /* temp_count = len */
beqi r3,3f
1:
lbu r4,r6,r0
sb r4,r5,r0
Expand Down Expand Up @@ -77,8 +77,8 @@ __strncpy_user:
.type __strnlen_user, @function
.align 4;
__strnlen_user:
beqid r6,3f
addik r3,r6,0
beqi r3,3f
1:
lbu r4,r5,r0
beqid r4,2f /* break on NUL */
Expand Down

0 comments on commit cb5edfe

Please sign in to comment.