From 0ef53cddd198853808bc2fe1ee2fe90142b2881d Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Tue, 12 Jun 2018 12:56:22 +1000 Subject: 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. --- cf-code/cf-fsi-fw.S | 1 + 1 file changed, 1 insertion(+) (limited to 'cf-code') 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 -- cgit v1.2.1