Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21412
b: refs/heads/master
c: 0d4bc95
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent feec358 commit 0bec554
Show file tree
Hide file tree
Showing 3 changed files with 9 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: e92b92571c85dfa1cdc56e88566134c51ae1d12b
refs/heads/master: 0d4bc95b9c205a7374afbe93b38d9c2757a45862
2 changes: 1 addition & 1 deletion trunk/arch/sparc64/lib/NGcopy_to_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
nop
#endif

#include "U3memcpy.S"
#include "NGmemcpy.S"
10 changes: 7 additions & 3 deletions trunk/arch/sparc64/lib/NGmemcpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@

#ifdef __KERNEL__
#include <asm/asi.h>
#include <asm/thread_info.h>
#define GLOBAL_SPARE %g7
#define RESTORE_ASI wr %g0, ASI_AIUS, %asi
#define RESTORE_ASI(TMP) \
ldub [%g6 + TI_CURRENT_DS], TMP; \
wr TMP, 0x0, %asi;
#else
#define GLOBAL_SPARE %g5
#define RESTORE_ASI
#define RESTORE_ASI(TMP) \
wr %g0, ASI_PNF, %asi
#endif

#ifndef STORE_ASI
Expand Down Expand Up @@ -246,7 +250,7 @@ FUNC_NAME: /* %o0=dst, %o1=src, %o2=len */
/* %o2 contains any final bytes still needed to be copied
* over. If anything is left, we copy it one byte at a time.
*/
RESTORE_ASI
RESTORE_ASI(%o3)
brz,pt %o2, 85f
sub %o0, %o1, %o3
ba,a,pt %XCC, 90f
Expand Down

0 comments on commit 0bec554

Please sign in to comment.