Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
calling.h File Reference
#include <asm/dwarf2.h>

Go to the source code of this file.

Macros

#define R15   0
 
#define R14   8
 
#define R13   16
 
#define R12   24
 
#define RBP   32
 
#define RBX   40
 
#define R11   48
 
#define R10   56
 
#define R9   64
 
#define R8   72
 
#define RAX   80
 
#define RCX   88
 
#define RDX   96
 
#define RSI   104
 
#define RDI   112
 
#define ORIG_RAX   120 /* + error_code */
 
#define RIP   128
 
#define CS   136
 
#define EFLAGS   144
 
#define RSP   152
 
#define SS   160
 
#define ARGOFFSET   R11
 
#define SWFRAME   ORIG_RAX
 
#define ARG_SKIP   (9*8)
 
#define REST_SKIP   (6*8)
 

Functions

macro RESTORE_ARGS r11 endif
if rstor_r8910
movq_cfi_restore r10
movq_cfi_restore r9
movq_cfi_restore r8 endif if
rstor_rax movq_cfi_restore rax
endif if rstor_rcx
movq_cfi_restore rcx endif if
rstor_rdx movq_cfi_restore rdx
endif movq_cfi_restore rsi
movq_cfi_restore rdi if
ARG_SKIP addskip addq
$ARG_SKIP rsp 
CFI_ADJUST_CFA_OFFSET (ARG_SKIP+\addskip).endif.endm.macro LOAD_ARGS offset
 
macro RESTORE_ARGS r11 endif
if rstor_r8910
movq_cfi_restore r10
movq_cfi_restore r9
movq_cfi_restore r8 endif if
rstor_rax movq_cfi_restore rax
endif if rstor_rcx
movq_cfi_restore rcx endif if
rstor_rdx movq_cfi_restore rdx
endif movq_cfi_restore rsi
movq_cfi_restore rdi if
ARG_SKIP addskip addq
$ARG_SKIP rsp r11 movq 
offset (%rsp)
 
macro SAVE_REST subq rsp
CFI_ADJUST_CFA_OFFSET
REST_SKIP movq_cfi *movq_cfi
*movq_cfi *movq_cfi *movq_cfi
*movq_cfi *endm macro
RESTORE_REST movq_cfi_restore
r15 movq_cfi_restore r14
movq_cfi_restore r13
movq_cfi_restore r12
movq_cfi_restore rbp
movq_cfi_restore rbx addq rsp 
CFI_ADJUST_CFA_OFFSET (REST_SKIP).endm.macro SAVE_ALL SAVE_ARGS SAVE_REST.endm.macro RESTORE_ALL addskip=0RESTORE_REST RESTORE_ARGS 1
 

Variables

macro SAVE_ARGS addskip =0
 
macro SAVE_ARGS save_rcx =1
 
macro SAVE_ARGS save_r891011
 
macro SAVE_ARGS rsp
CFI_ADJUST_CFA_OFFSET *addskip
movq_cfi 
rdi
 
macro SAVE_ARGS rsp
CFI_ADJUST_CFA_OFFSET *addskip
movq_cfi *movq_cfi 
rsi
 
macro SAVE_ARGS rsp
CFI_ADJUST_CFA_OFFSET *addskip
movq_cfi *movq_cfi *movq_cfi 
rdx
 
macro SAVE_ARGS rsp
CFI_ADJUST_CFA_OFFSET *addskip
movq_cfi *movq_cfi *movq_cfi
*if save_rcx movq_cfi 
rcx
 
macro SAVE_ARGS rsp
CFI_ADJUST_CFA_OFFSET *addskip
movq_cfi *movq_cfi *movq_cfi
*if save_rcx movq_cfi *endif
movq_cfi 
rax
 
macro SAVE_ARGS rsp
CFI_ADJUST_CFA_OFFSET *addskip
movq_cfi *movq_cfi *movq_cfi
*if save_rcx movq_cfi *endif
movq_cfi *if save_r891011
movq_cfi 
r8
 
macro SAVE_ARGS rsp
CFI_ADJUST_CFA_OFFSET *addskip
movq_cfi *movq_cfi *movq_cfi
*if save_rcx movq_cfi *endif
movq_cfi *if save_r891011
movq_cfi *movq_cfi 
r9
 
macro SAVE_ARGS rsp
CFI_ADJUST_CFA_OFFSET *addskip
movq_cfi *movq_cfi *movq_cfi
*if save_rcx movq_cfi *endif
movq_cfi *if save_r891011
movq_cfi *movq_cfi *movq_cfi 
r10
 
macro SAVE_ARGS rsp
CFI_ADJUST_CFA_OFFSET *addskip
movq_cfi *movq_cfi *movq_cfi
*if save_rcx movq_cfi *endif
movq_cfi *if save_r891011
movq_cfi *movq_cfi *movq_cfi
*movq_cfi 
r11
 
macro RESTORE_ARGS rstor_rax =1
 
macro RESTORE_ARGS rstor_rcx =1
 
macro RESTORE_ARGS rstor_r11 =1
 
macro RESTORE_ARGS rstor_r8910 =1
 
macro RESTORE_ARGS rstor_rdx
 
macro RESTORE_ARGS r11 endif
if rstor_r8910
movq_cfi_restore r10
movq_cfi_restore r9
movq_cfi_restore r8 endif if
rstor_rax movq_cfi_restore rax
endif if rstor_rcx
movq_cfi_restore rcx endif if
rstor_rdx movq_cfi_restore rdx
endif movq_cfi_restore rsi
movq_cfi_restore rdi if
ARG_SKIP addskip addq
$ARG_SKIP rsp 
skiprax
 
macro SAVE_REST subq $REST_SKIP
 
macro SAVE_REST subq rsp
CFI_ADJUST_CFA_OFFSET
REST_SKIP movq_cfi 
rbx
 
macro SAVE_REST subq rsp
CFI_ADJUST_CFA_OFFSET
REST_SKIP movq_cfi *movq_cfi 
rbp
 
macro SAVE_REST subq rsp
CFI_ADJUST_CFA_OFFSET
REST_SKIP movq_cfi *movq_cfi
*movq_cfi 
r12
 
macro SAVE_REST subq rsp
CFI_ADJUST_CFA_OFFSET
REST_SKIP movq_cfi *movq_cfi
*movq_cfi *movq_cfi 
r13
 
macro SAVE_REST subq rsp
CFI_ADJUST_CFA_OFFSET
REST_SKIP movq_cfi *movq_cfi
*movq_cfi *movq_cfi *movq_cfi 
r14
 
macro SAVE_REST subq rsp
CFI_ADJUST_CFA_OFFSET
REST_SKIP movq_cfi *movq_cfi
*movq_cfi *movq_cfi *movq_cfi
*movq_cfi 
r15
 

Macro Definition Documentation

#define ARG_SKIP   (9*8)

Definition at line 108 of file calling.h.

#define ARGOFFSET   R11

Definition at line 83 of file calling.h.

#define CS   136

Definition at line 78 of file calling.h.

#define EFLAGS   144

Definition at line 79 of file calling.h.

#define ORIG_RAX   120 /* + error_code */

Definition at line 73 of file calling.h.

#define R10   56

Definition at line 65 of file calling.h.

#define R11   48

Definition at line 64 of file calling.h.

#define R12   24

Definition at line 59 of file calling.h.

#define R13   16

Definition at line 58 of file calling.h.

#define R14   8

Definition at line 57 of file calling.h.

#define R15   0

Definition at line 56 of file calling.h.

#define R8   72

Definition at line 67 of file calling.h.

#define R9   64

Definition at line 66 of file calling.h.

#define RAX   80

Definition at line 68 of file calling.h.

#define RBP   32

Definition at line 60 of file calling.h.

#define RBX   40

Definition at line 61 of file calling.h.

#define RCX   88

Definition at line 69 of file calling.h.

#define RDI   112

Definition at line 72 of file calling.h.

#define RDX   96

Definition at line 70 of file calling.h.

#define REST_SKIP   (6*8)

Definition at line 158 of file calling.h.

#define RIP   128

Definition at line 77 of file calling.h.

#define RSI   104

Definition at line 71 of file calling.h.

#define RSP   152

Definition at line 80 of file calling.h.

#define SS   160

Definition at line 81 of file calling.h.

#define SWFRAME   ORIG_RAX

Definition at line 84 of file calling.h.

Function Documentation

macro RESTORE_ARGS r11 endif if rstor_r8910 movq_cfi_restore r10 movq_cfi_restore r9 movq_cfi_restore r8 endif if rstor_rax movq_cfi_restore rax endif if rstor_rcx movq_cfi_restore rcx endif if rstor_rdx movq_cfi_restore rdx endif movq_cfi_restore rsi movq_cfi_restore rdi if ARG_SKIP addskip addq $ARG_SKIP rsp CFI_ADJUST_CFA_OFFSET ( ARG_SKIP+\  addskip)
macro SAVE_REST subq rsp CFI_ADJUST_CFA_OFFSET REST_SKIP movq_cfi * movq_cfi * movq_cfi * movq_cfi * movq_cfi * movq_cfi * endm macro RESTORE_REST movq_cfi_restore r15 movq_cfi_restore r14 movq_cfi_restore r13 movq_cfi_restore r12 movq_cfi_restore rbp movq_cfi_restore rbx addq rsp CFI_ADJUST_CFA_OFFSET ( REST_SKIP  )
pure virtual
macro RESTORE_ARGS r11 endif if rstor_r8910 movq_cfi_restore r10 movq_cfi_restore r9 movq_cfi_restore r8 endif if rstor_rax movq_cfi_restore rax endif if rstor_rcx movq_cfi_restore rcx endif if rstor_rdx movq_cfi_restore rdx endif movq_cfi_restore rsi movq_cfi_restore rdi if ARG_SKIP addskip addq $ARG_SKIP rsp r11 movq offset ( rsp)

Variable Documentation

macro SAVE_REST subq rsp CFI_ADJUST_CFA_OFFSET REST_SKIP movq_cfi *movq_cfi *movq_cfi *movq_cfi *movq_cfi *movq_cfi *endm macro RESTORE_REST movq_cfi_restore r15 movq_cfi_restore r14 movq_cfi_restore r13 movq_cfi_restore r12 movq_cfi_restore rbp movq_cfi_restore rbx addq $REST_SKIP

Definition at line 161 of file calling.h.

macro RESTORE_ARGS r11 endif if rstor_r8910 movq_cfi_restore r10 movq_cfi_restore r9 movq_cfi_restore r8 endif if rstor_rax movq_cfi_restore rax endif if rstor_rcx movq_cfi_restore rcx endif if rstor_rdx movq_cfi_restore rdx endif movq_cfi_restore rsi movq_cfi_restore rdi if ARG_SKIP addskip addq $ARG_SKIP addskip =0

Definition at line 86 of file calling.h.

macro SAVE_ARGS rsp CFI_ADJUST_CFA_OFFSET* addskip movq_cfi * movq_cfi * movq_cfi * if save_rcx movq_cfi * endif movq_cfi * if save_r891011 movq_cfi * movq_cfi * movq_cfi r10

Definition at line 86 of file calling.h.

macro SAVE_ARGS rsp CFI_ADJUST_CFA_OFFSET* addskip movq_cfi * movq_cfi * movq_cfi * if save_rcx movq_cfi * endif movq_cfi * if save_r891011 movq_cfi * movq_cfi * movq_cfi * movq_cfi r11

Definition at line 86 of file calling.h.

macro SAVE_REST subq rsp CFI_ADJUST_CFA_OFFSET REST_SKIP movq_cfi * movq_cfi * movq_cfi r12

Definition at line 161 of file calling.h.

macro SAVE_REST subq rsp CFI_ADJUST_CFA_OFFSET REST_SKIP movq_cfi * movq_cfi * movq_cfi * movq_cfi r13

Definition at line 161 of file calling.h.

macro SAVE_REST subq rsp CFI_ADJUST_CFA_OFFSET REST_SKIP movq_cfi * movq_cfi * movq_cfi * movq_cfi * movq_cfi r14

Definition at line 161 of file calling.h.

macro SAVE_REST subq rsp CFI_ADJUST_CFA_OFFSET REST_SKIP movq_cfi * movq_cfi * movq_cfi * movq_cfi * movq_cfi * movq_cfi r15

Definition at line 161 of file calling.h.

macro SAVE_ARGS rsp CFI_ADJUST_CFA_OFFSET* addskip movq_cfi * movq_cfi * movq_cfi * if save_rcx movq_cfi * endif movq_cfi * if save_r891011 movq_cfi r8

Definition at line 86 of file calling.h.

macro SAVE_ARGS rsp CFI_ADJUST_CFA_OFFSET* addskip movq_cfi * movq_cfi * movq_cfi * if save_rcx movq_cfi * endif movq_cfi * if save_r891011 movq_cfi * movq_cfi r9

Definition at line 86 of file calling.h.

macro SAVE_ARGS rsp CFI_ADJUST_CFA_OFFSET* addskip movq_cfi * movq_cfi * movq_cfi * if save_rcx movq_cfi * endif movq_cfi rax

Definition at line 86 of file calling.h.

macro SAVE_REST subq rsp CFI_ADJUST_CFA_OFFSET REST_SKIP movq_cfi * movq_cfi rbp

Definition at line 161 of file calling.h.

macro SAVE_REST subq rsp CFI_ADJUST_CFA_OFFSET REST_SKIP movq_cfi rbx

Definition at line 161 of file calling.h.

macro SAVE_ARGS rsp CFI_ADJUST_CFA_OFFSET* addskip movq_cfi * movq_cfi * movq_cfi * if save_rcx movq_cfi rcx

Definition at line 86 of file calling.h.

macro SAVE_ARGS rsp CFI_ADJUST_CFA_OFFSET* addskip movq_cfi rdi

Definition at line 86 of file calling.h.

macro SAVE_ARGS rsp CFI_ADJUST_CFA_OFFSET* addskip movq_cfi * movq_cfi * movq_cfi rdx

Definition at line 86 of file calling.h.

macro SAVE_ARGS rsp CFI_ADJUST_CFA_OFFSET* addskip movq_cfi * movq_cfi rsi

Definition at line 86 of file calling.h.

macro RESTORE_ARGS rstor_r11 =1

Definition at line 110 of file calling.h.

macro RESTORE_ARGS rstor_r8910 =1

Definition at line 111 of file calling.h.

macro RESTORE_ARGS rstor_rax =1

Definition at line 110 of file calling.h.

macro RESTORE_ARGS rstor_rcx =1

Definition at line 110 of file calling.h.

macro RESTORE_ARGS rstor_rdx
Initial value:
=1
.if \rstor_r11
movq_cfi_restore 0*8

Definition at line 111 of file calling.h.

macro SAVE_ARGS save_r891011
Initial value:
=1
subq $9*8+\addskip

Definition at line 86 of file calling.h.

macro SAVE_ARGS save_rcx =1

Definition at line 86 of file calling.h.

macro RESTORE_ARGS r11 endif if rstor_r8910 movq_cfi_restore r10 movq_cfi_restore r9 movq_cfi_restore r8 endif if rstor_rax movq_cfi_restore rax endif if rstor_rcx movq_cfi_restore rcx endif if rstor_rdx movq_cfi_restore rdx endif movq_cfi_restore rsi movq_cfi_restore rdi if ARG_SKIP addskip addq $ARG_SKIP rsp skiprax
Initial value:

Definition at line 143 of file calling.h.