patch-2.4.21 linux-2.4.21/arch/alpha/lib/stxncpy.S
Next file: linux-2.4.21/arch/alpha/lib/udelay.c
Previous file: linux-2.4.21/arch/alpha/lib/stxcpy.S
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
2003-06-13 07:51:29.000000000 -0700
- Orig file:
linux-2.4.20/arch/alpha/lib/stxncpy.S
- Orig date:
2002-11-28 15:53:08.000000000 -0800
diff -urN linux-2.4.20/arch/alpha/lib/stxncpy.S linux-2.4.21/arch/alpha/lib/stxncpy.S
@@ -25,10 +25,10 @@
* a0 = unaligned address of the last *word* written
* a2 = the number of full words left in COUNT
*
- * Furthermore, v0, a3-a5, t11, t12, and $at are untouched.
+ * Furthermore, v0, a3-a5, t11, and $at are untouched.
*/
-#include <alpha/regdef.h>
+#include <asm/regdef.h>
.set noat
.set noreorder
@@ -269,7 +269,7 @@
t1 == the shifted high-order bits from the previous source word */
$u_eoc:
and a1, 7, t6 # e1 :
- sll t12, t6, t6 # e0 :
+ sll t10, t6, t6 # e0 :
and t6, 0xff, t6 # e0 :
bne t6, 1f # .. e1 :
@@ -303,18 +303,17 @@
ldq_u t0, 0(a0) # e0 :
lda t6, -1 # .. e1 :
mskql t6, a0, t6 # e0 :
-1:
subq a1, t4, a1 # .. e1 : sub dest misalignment from src addr
/* If source misalignment is larger than dest misalignment, we need
extra startup checks to avoid SEGV. */
- cmplt t4, t5, t12 # e1 :
+1: cmplt t4, t5, t12 # e1 :
extql t1, a1, t1 # .. e0 : shift src into place
lda t2, -1 # e0 : for creating masks later
- beq t12, $u_head # e1 :
+ beq t12, $u_head # .. e1 :
- mskqh t2, t5, t2 # e0 : begin src byte validity mask
+ nop # e0 :
cmpbge zero, t1, t8 # .. e1 : is there a zero?
extql t2, a1, t2 # e0 :
or t8, t10, t5 # .. e1 : test for end-of-count too
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)