summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-12 12:56:22 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-12 12:56:22 +1000
commit0ef53cddd198853808bc2fe1ee2fe90142b2881d (patch)
treeeef999c10d591bad562afbfb6b2b45d79f02be77
parente3c381828c86d0a11ca3315186fc5ad34e906553 (diff)
downloadcf-fsi-0ef53cddd198853808bc2fe1ee2fe90142b2881d.tar.gz
cf-fsi-0ef53cddd198853808bc2fe1ee2fe90142b2881d.zip
Read back irq ack register before returning
Stores may be asynchronous, I'm not entirely certain what ordering the CF provides with the subsequent read of the command in SRAM, so ensure the store did make it by reading back first.
-rw-r--r--cf-code/cf-fsi-fw.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/cf-code/cf-fsi-fw.S b/cf-code/cf-fsi-fw.S
index 14b80d2..7bcc8c8 100644
--- a/cf-code/cf-fsi-fw.S
+++ b/cf-code/cf-fsi-fw.S
@@ -568,6 +568,7 @@ _int:
addq.l #1,%a1@(INT_CNT)
moveq.l #CVIC_SW_IRQ,%d0
move.l %d0,%a2@(CVIC_SW_IRQ_CLR)
+ move.l %a2@(CVIC_SW_IRQ_CLR),%d0
move.l %a7@+,%d0
rte
OpenPOWER on IntegriCloud