[U-Boot] [RFC PATCH v2] ARM: Avoid compiler optimization for usages of readb, writeb and friends.
Dirk Behme
dirk.behme at googlemail.com
Tue Dec 21 09:37:14 CET 2010
On 21.12.2010 09:17, Wolfgang Denk wrote:
> Dear Dirk Behme,
>
> In message<4D105FB3.3090801 at googlemail.com> you wrote:
>>
>> Broken:
>> ======
> ...
>> static void omap_nand_hwcontrol(struct mtd_info *mtd, int32_t cmd,
>> uint32_t ctrl)
>> {
>> register struct nand_chip *this = mtd->priv;
>> ...
>> if (cmd != -1)
>> ({ do { } while (0); (*(volatile unsigned char *)(this->IO_ADDR_W)>
>> = (cmd)); });
>
> But this is the old, discarded version of the patch.
>
> I though we had agreed that we have to use the
>
> __asm__ __volatile__ ("" : : : "memory")
>
> version instead?
Yes.
I mixed the patches :(
Sorry for the noise. I just sent the hopefully correct version some
minutes ago.
Thanks
Dirk
More information about the U-Boot
mailing list