gnu asm help...

gnu asm help...

Post by Rick Hohense » Wed, 20 Jun 2001 12:10:05



The C-names-in-asms stuff is explained in (g?)as.info. The explanation is
a bit strained, but after the third or fourth read it becomes fairly
sensible.

Rick Hohensee
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. gnu asm help...

Hello asm gurus..

I need a simple (??) change to atomic_inc() functionality. so that i can
increment and return the
value of the variable.

current implementation in linux/include/asm/atomic.h does not do this job.

any help would be greatly appreciated.

ashokr

from atomic.h

also if there is any reference to the gnu asm symtax, please send me a
pointer..
i can understand what the LOCK "incl %0 means.. but not sure what the rest
is for.

thanks
ashokr

static __inline__ void atomic_inc(atomic_t *v)
{
    __asm__ __volatile__(
        LOCK "incl %0"
        :"=m" (v->counter)
        :"m" (v->counter));

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Unable to use Kingston KNE2000 EtherRx LC Card

3. WISHFUL SEARCH: Intel Asm -> GNU Asm format converter

4. NIC ENet driver

5. /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include/asm causing errors...

6. how to get time from UNIX to c.. anyone know an easy way?

7. Microsoft ASM to Gnu AS Translater

8. Changing IP Address On The Fly?

9. GNU ASM documentation wanted ...

10. GCC gas x86 asm -> Intel X86 asm ?

11. AT&T asm syntax but not IBM asm syntax?

12. Fix asm-alpha/topology.h & asm-ppc64/topology.h

13. linux asm and minux asm?