Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

DECLINLINE ( RTSEL   ) 

Get the cs register.

Returns:
cs.
Get the DS register.
Returns:
DS.
Get the ES register.
Returns:
ES.
Get the FS register.
Returns:
FS.
Get the GS register.
Returns:
GS.
Get the SS register.
Returns:
SS.
Get the TR register.
Returns:
TR.

Definition at line 296 of file asm.h.

{
    RTSEL SelCS;
# if RT_INLINE_ASM_GNU_STYLE
    __asm__ __volatile__("movw  %%cs, %0\n\t" : "=r" (SelCS));
# else
    __asm
    {
        mov     ax, cs
        mov     [SelCS], ax
    }
# endif
    return SelCS;
}


Generated by  Doxygen 1.6.0   Back to index