[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Aw: Re: [PATCH] Make EHCI driver interrupt handler follow PCI-BIOS specification.



2014-10-08 18:35 GMT+02:00 David Gálvez <dgalvez75@gmail.com>:
> 2014-10-08 18:24 GMT+02:00 markus@mubf.de <markus@mubf.de>:
>>
>> @David: also note that asm() statements without "memory" in their clobber list are subject to being moved around by the optimizer as it sees fit (especially if it runs out of registers, so again, just adding another local variable can break everything). You can't expect individual asm() lines to be executed in the order you have written them without "memory". "memory" will nail them to where they have been written.
>>
>
>
> I didn't know that, thanks a lot for point me this out.


Hi Markus,

I've been reading about this, shouldn't the keyword "volatile" be
enough to avoid gcc to move the asm() line?