On Fri, Sep 08, 2000 at 01:41:05PM +0200, Jamie Lokier wrote: > Casting via __dummy is there so that the "m" (or "=m") memory constraint > will make that operand refer to the actual object in memory, and not a > copy (in a different area of memory). Are you really sure gcc could pass a copy even when I specify "memory" in the clobber list? My point is that "memory" could also mean that the address where gcc is taking the _copy_ could be clobbered by the asm itself as side effect and so gcc shouldn't allowed to assume anything and it should first copy the result value of the previous actions to its real final location before starting up any asm that clobbers "memory". I think the "memory" clobber should be enough to ensure that the address used with the .*m constraints refers to the real backend of the memory passed as parameter to the inline asm. I think we can remove all the __dummy stuff and put the "memory" in such asm statements. Comments? Andrea - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: spin_lock forgets to clobber memory and other s... Jamie Lokier
- Re: spin_lock forgets to clobber memory and oth... Linus Torvalds
- Re: spin_lock forgets to clobber memory and oth... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and... Jamie Lokier
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and... David Woodhouse
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and other smp fi... kuznet
- Re: spin_lock forgets to clobber memory and other s... Andrea Arcangeli
- GCC proposal for "@" asm constraint Jamie Lokier
- Re: GCC proposal for "@" asm cons... Andrea Arcangeli
- Re: GCC proposal for "@" asm ... Linus Torvalds
- Re: GCC proposal for "@" asm ... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and other s... Jamie Lokier
- Re: spin_lock forgets to clobber memory and oth... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and... Jamie Lokier
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli
- Re: spin_lock forgets to clobber memory and... Juan J. Quintela
- Re: spin_lock forgets to clobber memory and oth... kuznet
- Re: spin_lock forgets to clobber memory and... Richard Henderson
- Re: spin_lock forgets to clobber memory... Andrea Arcangeli