git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
arch
/
ia64
/
lib
/
memcpy_mck.S
diff --git
a/arch/ia64/lib/memcpy_mck.S
b/arch/ia64/lib/memcpy_mck.S
index
9e534d5
..
46c9331
100644
(file)
--- a/
arch/ia64/lib/memcpy_mck.S
+++ b/
arch/ia64/lib/memcpy_mck.S
@@
-6,9
+6,7
@@
* in1: source address
* in2: number of bytes to copy
* Output:
* in1: source address
* in2: number of bytes to copy
* Output:
- * for memcpy: return dest
- * for copy_user: return 0 if success,
- * or number of byte NOT copied if error occurred.
+ * 0 if success, or number of byte NOT copied if error occurred.
*
* Copyright (C) 2002 Intel Corp.
* Copyright (C) 2002 Ken Chen <kenneth.w.chen@intel.com>
*
* Copyright (C) 2002 Intel Corp.
* Copyright (C) 2002 Ken Chen <kenneth.w.chen@intel.com>
@@
-75,7
+73,6
@@
GLOBAL_ENTRY(memcpy)
and r28=0x7,in0
and r29=0x7,in1
mov f6=f0
and r28=0x7,in0
and r29=0x7,in1
mov f6=f0
- mov retval=in0
br.cond.sptk .common_code
;;
END(memcpy)
br.cond.sptk .common_code
;;
END(memcpy)
@@
-87,7
+84,7
@@
GLOBAL_ENTRY(__copy_user)
mov f6=f1
mov saved_in0=in0 // save dest pointer
mov saved_in1=in1 // save src pointer
mov f6=f1
mov saved_in0=in0 // save dest pointer
mov saved_in1=in1 // save src pointer
- mov
retval=r0 // initialize return value
+ mov
saved_in2=in2 // save len
;;
.common_code:
cmp.gt p15,p0=8,in2 // check for small size
;;
.common_code:
cmp.gt p15,p0=8,in2 // check for small size
@@
-95,7
+92,7
@@
GLOBAL_ENTRY(__copy_user)
cmp.ne p14,p0=0,r29 // check src alignment
add src0=0,in1
sub r30=8,r28 // for .align_dest
cmp.ne p14,p0=0,r29 // check src alignment
add src0=0,in1
sub r30=8,r28 // for .align_dest
- mov
saved_in2=in2 // save len
+ mov
retval=r0 // initialize return value
;;
add dst0=0,in0
add dst1=1,in0 // dest odd index
;;
add dst0=0,in0
add dst1=1,in0 // dest odd index