patch-2.4.22 linux-2.4.22/arch/alpha/lib/ev6-stxncpy.S
Next file: linux-2.4.22/arch/alpha/lib/stxncpy.S
Previous file: linux-2.4.22/arch/alpha/kernel/sys_sio.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
2003-08-25 04:44:39.000000000 -0700
- Orig file:
linux-2.4.21/arch/alpha/lib/ev6-stxncpy.S
- Orig date:
2003-06-13 07:51:29.000000000 -0700
diff -urN linux-2.4.21/arch/alpha/lib/ev6-stxncpy.S linux-2.4.22/arch/alpha/lib/ev6-stxncpy.S
@@ -360,9 +360,9 @@
lda t2, -1 # E : for creating masks later
beq t12, $u_head # U : (stall)
- nop
- cmpbge zero, t1, t8 # E : is there a zero?
extql t2, a1, t2 # U :
+ cmpbge zero, t1, t8 # E : is there a zero?
+ andnot t2, t6, t12 # E : dest mask for a single word copy
or t8, t10, t5 # E : test for end-of-count too
cmpbge zero, t2, t3 # E :
@@ -379,13 +379,13 @@
negq t8, t6 # E : build bitmask of bytes <= zero
mskqh t1, t4, t1 # U :
- and t6, t8, t12 # E :
- subq t12, 1, t6 # E : (stall)
- or t6, t12, t8 # E : (stall)
- zapnot t2, t8, t2 # U : prepare source word; mirror changes (stall)
+ and t6, t8, t2 # E :
+ subq t2, 1, t6 # E : (stall)
+ or t6, t2, t8 # E : (stall)
+ zapnot t12, t8, t12 # U : prepare source word; mirror changes (stall)
zapnot t1, t8, t1 # U : to source validity mask
- andnot t0, t2, t0 # E : zero place for source to reside
+ andnot t0, t12, t0 # E : zero place for source to reside
or t0, t1, t0 # E : and put it there (stall both t0, t1)
stq_u t0, 0(a0) # L : (stall)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)