[U-Boot] [PATCH 2/4]: arm: Kirkwood: Fix compiler optimization bug for kwgbe_send

Ben Warren biggerbadderben at gmail.com
Tue Jul 21 07:41:27 CEST 2009


Simon Kagstrom wrote:
> 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: Simon Kagstrom <simon.kagstrom at netinsight.net>
> ---
Applied to net repo.

thanks,
Ben


More information about the U-Boot mailing list