summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/ata-as-coldfire.S
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/coldfire/ata-as-coldfire.S')
-rwxr-xr-xfirmware/target/coldfire/ata-as-coldfire.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/coldfire/ata-as-coldfire.S b/firmware/target/coldfire/ata-as-coldfire.S
index 3b0d67f8e4..0148ea261f 100755
--- a/firmware/target/coldfire/ata-as-coldfire.S
+++ b/firmware/target/coldfire/ata-as-coldfire.S
@@ -62,9 +62,9 @@ copy_read_sectors:
62 move.l %d2, %d3 62 move.l %d2, %d3
63 lsr.l #8, %d3 63 lsr.l #8, %d3
64 move.b %d3, (%a0)+ /* write high byte of it, aligns dest addr */ 64 move.b %d3, (%a0)+ /* write high byte of it, aligns dest addr */
65 65
66 btst.l #1, %d0 /* longword aligned? */ 66 btst.l #1, %d0 /* longword aligned? (testing old d0 value!) */
67 beq.b .r_end_u_w1 /* yes, skip leading word handling */ 67 bne.b .r_end_u_w1 /* yes, skip leading word handling */
68 68
69 swap %d2 /* move initial word up */ 69 swap %d2 /* move initial word up */
70 move.w (%a2), %d2 /* combine with second word */ 70 move.w (%a2), %d2 /* combine with second word */
@@ -273,8 +273,8 @@ copy_write_sectors:
273 273
274 move.b (%a0)+, %d2 274 move.b (%a0)+, %d2
275 275
276 btst.l #1, %d0 /* longword aligned? */ 276 btst.l #1, %d0 /* longword aligned? (testing old d0 value!) */
277 beq.b .w_end_u_w1 /* yes, skip leading word handling */ 277 bne.b .w_end_u_w1 /* yes, skip leading word handling */
278 278
279 swap %d2 279 swap %d2
280 move.w (%a0)+, %d2 280 move.w (%a0)+, %d2