what's the meaning of "%%fs" ?

lx lxlenovostar at gmail.com
Thu May 9 06:04:16 EDT 2013


hi all:
       the codes is:

extern inline unsigned char get_fs_byte(const char * addr)
{
        unsigned register char _v;

        __asm__ ("movb %%fs:%1,%0":"=r" (_v):"m" (*addr));
        return _v;
}

What's the meaning of "%%fs" ?

Is "  __asm__ ("movb %1,%0":"=r" (_v):"m" (*addr));" not ok?


Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130509/1e18fa00/attachment.html 


More information about the Kernelnewbies mailing list