Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207147
b: refs/heads/master
c: da2af0a
h: refs/heads/master
i:
  207145: 85bbbef
  207143: 0686dc6
v: v3
  • Loading branch information
Jesper Nilsson committed Aug 4, 2010
1 parent 0fa7bab commit 710ccb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2dc1c40c6e81ba406f2f6b00fe5eecb4c7cf1197
refs/heads/master: da2af0a771caa8f8cff9c7bfc979f0510eb0faea
7 changes: 3 additions & 4 deletions trunk/arch/cris/include/arch-v32/arch/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ __do_strncpy_from_user(char *dst, const char *src, long count)
__asm__ __volatile__ (
" move.d %3,%0\n"
"5: move.b [%2+],$acr\n"
"1: beq 2f\n"
"1: beq 6f\n"
" move.b $acr,[%1+]\n"

" subq 1,%0\n"
"2: bne 1b\n"
" move.b [%2+],$acr\n"

" sub.d %3,%0\n"
"6: sub.d %3,%0\n"
" neg.d %0,%0\n"
"3:\n"
" .section .fixup,\"ax\"\n"
Expand All @@ -140,8 +140,7 @@ __do_strncpy_from_user(char *dst, const char *src, long count)
/* The address for a fault at the first move is trivial.
The address for a fault at the second move is that of
the preceding branch insn, since the move insn is in
its delay-slot. That address is also a branch
target. Just so you don't get confused... */
its delay-slot. Just so you don't get confused... */
" .previous\n"
" .section __ex_table,\"a\"\n"
" .dword 5b,4b\n"
Expand Down

0 comments on commit 710ccb5

Please sign in to comment.