Re: inline assembler question

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

 



gumbold <gumbold@xxxxxxxxxx> writes:

> please tell me what it means:
> #define MBARRIER() __asm__ __volatile__ ("lock; addl $0,0(%%esp)" :::
> "memory")
> #define UNLOCK_MBARRIER() __asm__ __volatile__ ("" ::: "memory")

This is where the asm statement is documented:
    http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Extended-Asm.html

If you have a more specific question, ask it.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux