Xen Test Framework
Macros
asm_macros.h File Reference

Macros for use in x86 assembly files. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __ASM_CODE(x)   " " #x " "
 
#define __ASM_CODE_RAW(x)   #x
 
#define ALIGN   .align 16
 
#define __ASM_SEL(c, l)   __ASM_CODE(l)
 
#define __ASM_SEL_RAW(c, l)   __ASM_CODE_RAW(l)
 
#define _WORD   __ASM_SEL(.long, .quad)
 
#define __ASM_REG(reg)   __ASM_SEL_RAW(e ## reg, r ## reg)
 
#define _ASM_AX   __ASM_REG(ax)
 
#define _ASM_CX   __ASM_REG(cx)
 
#define _ASM_DX   __ASM_REG(dx)
 
#define _ASM_BX   __ASM_REG(bx)
 
#define _ASM_SP   __ASM_REG(sp)
 
#define _ASM_BP   __ASM_REG(bp)
 
#define _ASM_SI   __ASM_REG(si)
 
#define _ASM_DI   __ASM_REG(di)
 

Detailed Description

Macros for use in x86 assembly files.

Definition in file asm_macros.h.

Macro Definition Documentation

◆ __ASM_CODE

#define __ASM_CODE (   x)    " " #x " "

Definition at line 14 of file asm_macros.h.

◆ __ASM_CODE_RAW

#define __ASM_CODE_RAW (   x)    #x

Definition at line 15 of file asm_macros.h.

◆ ALIGN

#define ALIGN   .align 16

Definition at line 18 of file asm_macros.h.

◆ __ASM_SEL

#define __ASM_SEL (   c,
 
)    __ASM_CODE(l)

Definition at line 25 of file asm_macros.h.

◆ __ASM_SEL_RAW

#define __ASM_SEL_RAW (   c,
 
)    __ASM_CODE_RAW(l)

Definition at line 26 of file asm_macros.h.

◆ _WORD

#define _WORD   __ASM_SEL(.long, .quad)

Definition at line 29 of file asm_macros.h.

◆ __ASM_REG

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

Definition at line 31 of file asm_macros.h.

◆ _ASM_AX

#define _ASM_AX   __ASM_REG(ax)

Definition at line 33 of file asm_macros.h.

◆ _ASM_CX

#define _ASM_CX   __ASM_REG(cx)

Definition at line 34 of file asm_macros.h.

◆ _ASM_DX

#define _ASM_DX   __ASM_REG(dx)

Definition at line 35 of file asm_macros.h.

◆ _ASM_BX

#define _ASM_BX   __ASM_REG(bx)

Definition at line 36 of file asm_macros.h.

◆ _ASM_SP

#define _ASM_SP   __ASM_REG(sp)

Definition at line 37 of file asm_macros.h.

◆ _ASM_BP

#define _ASM_BP   __ASM_REG(bp)

Definition at line 38 of file asm_macros.h.

◆ _ASM_SI

#define _ASM_SI   __ASM_REG(si)

Definition at line 39 of file asm_macros.h.

◆ _ASM_DI

#define _ASM_DI   __ASM_REG(di)

Definition at line 40 of file asm_macros.h.