[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.



David Gálvez <dgalvez75@gmail.com> writes:

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

volatile only tells gcc not to delete the asm statement even if its
inputs/outputs are unused.  But it can still move it around unrelated
memory accesses.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."