Skip to content
Commit 7b05f5e0 authored by Simon Kagstrom's avatar Simon Kagstrom Committed by Ben Warren
Browse files

arm: Kirkwood: Fix compiler optimization bug for kwgbe_send



kwgbe_send/recv both have loops waiting for the hardware to set  a bit.
GCC 4.3.3 cleverly optimizes the send case to ... a while(1); loop. This
patch uses readl to force a read from device memory. Other volatile
accesses have also been replaced with readl/writel where appropriate
(as per suggestions on the U-boot mailing list).

Signed-off-by: default avatarSimon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent 3f6b18ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment