summaryrefslogtreecommitdiffstats
path: root/cf-code/cf-fsi-fw.S
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 18:00:42 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 18:07:32 +1000
commit6d2ee3dfbf3095ee71cc81634d3eb54dca64cfb8 (patch)
tree06ecb449057a83d95da21d483000574cbaad2e49 /cf-code/cf-fsi-fw.S
parent3537fafa06ec7dd2be6bb5bc0cc48c7a7371f93e (diff)
downloadcf-fsi-6d2ee3dfbf3095ee71cc81634d3eb54dca64cfb8.tar.gz
cf-fsi-6d2ee3dfbf3095ee71cc81634d3eb54dca64cfb8.zip
Tracing fixes
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'cf-code/cf-fsi-fw.S')
-rw-r--r--cf-code/cf-fsi-fw.S11
1 files changed, 6 insertions, 5 deletions
diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S
index 6545894..fdaca54 100644
--- a/cf-code/cf-fsi-fw.S
+++ b/cf-code/cf-fsi-fw.S
@@ -65,7 +65,7 @@
.equ TR_CLKOBIT1, 0x03
.equ TR_CLKZ, 0x04 /* + count */
.equ TR_CLKWSTART, 0x05
- .equ TR_CLKTAG, 0x06
+ .equ TR_CLKTAG, 0x06 /* + tag */
.equ TR_CLKDATA, 0x07 /* + len */
.equ TR_CLKCRC, 0x08 /* + raw crc */
.equ TR_CLKIBIT0, 0x80
@@ -174,11 +174,11 @@
moveq.l #1,\tmp2
and.l \tmp2,\tmp
or.l \tmp,\reg
- .if TRACE == 1
+#ifdef ENABLE_TRACE
move.l #TR_CLKIBIT0,\tmp2
or.l \tmp,\tmp2
trace \tmp2
- .endif
+#endif
.endm
/*
@@ -360,8 +360,9 @@ start_command:
subq.l #1,%d3
bne 0b
- /* Invert data */
+ /* Invert data & trace*/
not.l %d4
+ trace %d4
/* (not strictly needed: clean up top bits) */
moveq #0xf,%d0
@@ -403,10 +404,10 @@ start_command:
clock_in_bit %d4,%d0,%d1
subq.l #1,%d3
bne 0b
- trace %d4
/* Invert it, extract 4 bits, and store it */
not.l %d4
+ trace %d4
moveq.l #0xf,%d0
and.l %d0,%d4
move.b %d4,%a1@(STAT_RCRC)
OpenPOWER on IntegriCloud