Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
asm.h File Reference

Go to the source code of this file.

Macros

#define __ASM_FORM(x)   " " #x " "
 
#define __ASM_FORM_COMMA(x)   " " #x ","
 
#define __ASM_SEL(a, b)   __ASM_FORM(b)
 
#define __ASM_SIZE(inst,...)
 
#define __ASM_REG(reg)   __ASM_SEL(e##reg, r##reg)
 
#define _ASM_PTR   __ASM_SEL(.long, .quad)
 
#define _ASM_ALIGN   __ASM_SEL(.balign 4, .balign 8)
 
#define _ASM_MOV   __ASM_SIZE(mov)
 
#define _ASM_INC   __ASM_SIZE(inc)
 
#define _ASM_DEC   __ASM_SIZE(dec)
 
#define _ASM_ADD   __ASM_SIZE(add)
 
#define _ASM_SUB   __ASM_SIZE(sub)
 
#define _ASM_XADD   __ASM_SIZE(xadd)
 
#define _ASM_AX   __ASM_REG(ax)
 
#define _ASM_BX   __ASM_REG(bx)
 
#define _ASM_CX   __ASM_REG(cx)
 
#define _ASM_DX   __ASM_REG(dx)
 
#define _ASM_SP   __ASM_REG(sp)
 
#define _ASM_BP   __ASM_REG(bp)
 
#define _ASM_SI   __ASM_REG(si)
 
#define _ASM_DI   __ASM_REG(di)
 
#define _ASM_EXTABLE(from, to)
 
#define _ASM_EXTABLE_EX(from, to)
 

Macro Definition Documentation

#define __ASM_FORM (   x)    " " #x " "

Definition at line 8 of file asm.h.

#define __ASM_FORM_COMMA (   x)    " " #x ","

Definition at line 9 of file asm.h.

#define __ASM_REG (   reg)    __ASM_SEL(e##reg, r##reg)

Definition at line 20 of file asm.h.

#define __ASM_SEL (   a,
  b 
)    __ASM_FORM(b)

Definition at line 15 of file asm.h.

#define __ASM_SIZE (   inst,
  ... 
)
Value:
__ASM_SEL(inst##l##__VA_ARGS__, \
inst##q##__VA_ARGS__)

Definition at line 18 of file asm.h.

#define _ASM_ADD   __ASM_SIZE(add)

Definition at line 28 of file asm.h.

#define _ASM_ALIGN   __ASM_SEL(.balign 4, .balign 8)

Definition at line 23 of file asm.h.

#define _ASM_AX   __ASM_REG(ax)

Definition at line 32 of file asm.h.

#define _ASM_BP   __ASM_REG(bp)

Definition at line 37 of file asm.h.

#define _ASM_BX   __ASM_REG(bx)

Definition at line 33 of file asm.h.

#define _ASM_CX   __ASM_REG(cx)

Definition at line 34 of file asm.h.

#define _ASM_DEC   __ASM_SIZE(dec)

Definition at line 27 of file asm.h.

#define _ASM_DI   __ASM_REG(di)

Definition at line 39 of file asm.h.

#define _ASM_DX   __ASM_REG(dx)

Definition at line 35 of file asm.h.

#define _ASM_EXTABLE (   from,
  to 
)
Value:
" .pushsection \"__ex_table\",\"a\"\n" \
" .balign 8\n" \
" .long (" #from ") - .\n" \
" .long (" #to ") - .\n" \
" .popsection\n"

Definition at line 57 of file asm.h.

#define _ASM_EXTABLE_EX (   from,
  to 
)
Value:
" .pushsection \"__ex_table\",\"a\"\n" \
" .balign 8\n" \
" .long (" #from ") - .\n" \
" .long (" #to ") - . + 0x7ffffff0\n" \
" .popsection\n"

Definition at line 64 of file asm.h.

#define _ASM_INC   __ASM_SIZE(inc)

Definition at line 26 of file asm.h.

#define _ASM_MOV   __ASM_SIZE(mov)

Definition at line 25 of file asm.h.

#define _ASM_PTR   __ASM_SEL(.long, .quad)

Definition at line 22 of file asm.h.

#define _ASM_SI   __ASM_REG(si)

Definition at line 38 of file asm.h.

#define _ASM_SP   __ASM_REG(sp)

Definition at line 36 of file asm.h.

#define _ASM_SUB   __ASM_SIZE(sub)

Definition at line 29 of file asm.h.

#define _ASM_XADD   __ASM_SIZE(xadd)

Definition at line 30 of file asm.h.