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

Go to the source code of this file.

Data Structures

struct  xtensa_gregset_t
 
struct  elf_xtregs_t
 

Macros

#define EM_XTENSA   94
 
#define EM_XTENSA_OLD   0xABC7
 
#define R_XTENSA_NONE   0
 
#define R_XTENSA_32   1
 
#define R_XTENSA_RTLD   2
 
#define R_XTENSA_GLOB_DAT   3
 
#define R_XTENSA_JMP_SLOT   4
 
#define R_XTENSA_RELATIVE   5
 
#define R_XTENSA_PLT   6
 
#define R_XTENSA_OP0   8
 
#define R_XTENSA_OP1   9
 
#define R_XTENSA_OP2   10
 
#define R_XTENSA_ASM_EXPAND   11
 
#define R_XTENSA_ASM_SIMPLIFY   12
 
#define R_XTENSA_GNU_VTINHERIT   15
 
#define R_XTENSA_GNU_VTENTRY   16
 
#define R_XTENSA_DIFF8   17
 
#define R_XTENSA_DIFF16   18
 
#define R_XTENSA_DIFF32   19
 
#define R_XTENSA_SLOT0_OP   20
 
#define R_XTENSA_SLOT1_OP   21
 
#define R_XTENSA_SLOT2_OP   22
 
#define R_XTENSA_SLOT3_OP   23
 
#define R_XTENSA_SLOT4_OP   24
 
#define R_XTENSA_SLOT5_OP   25
 
#define R_XTENSA_SLOT6_OP   26
 
#define R_XTENSA_SLOT7_OP   27
 
#define R_XTENSA_SLOT8_OP   28
 
#define R_XTENSA_SLOT9_OP   29
 
#define R_XTENSA_SLOT10_OP   30
 
#define R_XTENSA_SLOT11_OP   31
 
#define R_XTENSA_SLOT12_OP   32
 
#define R_XTENSA_SLOT13_OP   33
 
#define R_XTENSA_SLOT14_OP   34
 
#define R_XTENSA_SLOT0_ALT   35
 
#define R_XTENSA_SLOT1_ALT   36
 
#define R_XTENSA_SLOT2_ALT   37
 
#define R_XTENSA_SLOT3_ALT   38
 
#define R_XTENSA_SLOT4_ALT   39
 
#define R_XTENSA_SLOT5_ALT   40
 
#define R_XTENSA_SLOT6_ALT   41
 
#define R_XTENSA_SLOT7_ALT   42
 
#define R_XTENSA_SLOT8_ALT   43
 
#define R_XTENSA_SLOT9_ALT   44
 
#define R_XTENSA_SLOT10_ALT   45
 
#define R_XTENSA_SLOT11_ALT   46
 
#define R_XTENSA_SLOT12_ALT   47
 
#define R_XTENSA_SLOT13_ALT   48
 
#define R_XTENSA_SLOT14_ALT   49
 
#define ELF_NGREG   (sizeof(xtensa_gregset_t) / sizeof(elf_greg_t))
 
#define ELF_NFPREG   18
 
#define ELF_CORE_COPY_REGS(_eregs, _pregs)   xtensa_elf_core_copy_regs ((xtensa_gregset_t*)&(_eregs), _pregs);
 
#define elf_check_arch(x)
 
#define ELF_CLASS   ELFCLASS32
 
#define ELF_ARCH   EM_XTENSA
 
#define ELF_EXEC_PAGESIZE   PAGE_SIZE
 
#define ELF_ET_DYN_BASE   (2 * TASK_SIZE / 3)
 
#define ELF_HWCAP   (0)
 
#define ELF_PLATFORM   (NULL)
 
#define ELF_PLAT_INIT(_r, load_addr)
 
#define SET_PERSONALITY(ex)   set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
 

Typedefs

typedef unsigned long elf_greg_t
 
typedef elf_greg_t elf_gregset_t [ELF_NGREG]
 
typedef unsigned int elf_fpreg_t
 
typedef elf_fpreg_t elf_fpregset_t [ELF_NFPREG]
 

Functions

void xtensa_elf_core_copy_regs (xtensa_gregset_t *, struct pt_regs *)
 
void do_copy_regs (xtensa_gregset_t *, struct pt_regs *, struct task_struct *)
 
void do_restore_regs (xtensa_gregset_t *, struct pt_regs *, struct task_struct *)
 
void do_save_fpregs (elf_fpregset_t *, struct pt_regs *, struct task_struct *)
 
int do_restore_fpregs (elf_fpregset_t *, struct pt_regs *, struct task_struct *)
 

Macro Definition Documentation

#define ELF_ARCH   EM_XTENSA

Definition at line 125 of file elf.h.

#define elf_check_arch (   x)
Value:
( ( (x)->e_machine == EM_XTENSA ) || \
( (x)->e_machine == EM_XTENSA_OLD ) )

Definition at line 109 of file elf.h.

#define ELF_CLASS   ELFCLASS32

Definition at line 124 of file elf.h.

#define ELF_CORE_COPY_REGS (   _eregs,
  _pregs 
)    xtensa_elf_core_copy_regs ((xtensa_gregset_t*)&(_eregs), _pregs);

Definition at line 100 of file elf.h.

#define ELF_ET_DYN_BASE   (2 * TASK_SIZE / 3)

Definition at line 136 of file elf.h.

#define ELF_EXEC_PAGESIZE   PAGE_SIZE

Definition at line 127 of file elf.h.

#define ELF_HWCAP   (0)

Definition at line 144 of file elf.h.

#define ELF_NFPREG   18

Definition at line 95 of file elf.h.

#define ELF_NGREG   (sizeof(xtensa_gregset_t) / sizeof(elf_greg_t))

Definition at line 91 of file elf.h.

#define ELF_PLAT_INIT (   _r,
  load_addr 
)
Value:
do { _r->areg[0]=0; /*_r->areg[1]=0;*/ _r->areg[2]=0; _r->areg[3]=0; \
_r->areg[4]=0; _r->areg[5]=0; _r->areg[6]=0; _r->areg[7]=0; \
_r->areg[8]=0; _r->areg[9]=0; _r->areg[10]=0; _r->areg[11]=0; \
_r->areg[12]=0; _r->areg[13]=0; _r->areg[14]=0; _r->areg[15]=0; \
} while (0)

Definition at line 170 of file elf.h.

#define ELF_PLATFORM   (NULL)

Definition at line 154 of file elf.h.

#define EM_XTENSA   94

Definition at line 21 of file elf.h.

#define EM_XTENSA_OLD   0xABC7

Definition at line 22 of file elf.h.

#define R_XTENSA_32   1

Definition at line 27 of file elf.h.

#define R_XTENSA_ASM_EXPAND   11

Definition at line 36 of file elf.h.

#define R_XTENSA_ASM_SIMPLIFY   12

Definition at line 37 of file elf.h.

#define R_XTENSA_DIFF16   18

Definition at line 41 of file elf.h.

#define R_XTENSA_DIFF32   19

Definition at line 42 of file elf.h.

#define R_XTENSA_DIFF8   17

Definition at line 40 of file elf.h.

#define R_XTENSA_GLOB_DAT   3

Definition at line 29 of file elf.h.

#define R_XTENSA_GNU_VTENTRY   16

Definition at line 39 of file elf.h.

#define R_XTENSA_GNU_VTINHERIT   15

Definition at line 38 of file elf.h.

#define R_XTENSA_JMP_SLOT   4

Definition at line 30 of file elf.h.

#define R_XTENSA_NONE   0

Definition at line 26 of file elf.h.

#define R_XTENSA_OP0   8

Definition at line 33 of file elf.h.

#define R_XTENSA_OP1   9

Definition at line 34 of file elf.h.

#define R_XTENSA_OP2   10

Definition at line 35 of file elf.h.

#define R_XTENSA_PLT   6

Definition at line 32 of file elf.h.

#define R_XTENSA_RELATIVE   5

Definition at line 31 of file elf.h.

#define R_XTENSA_RTLD   2

Definition at line 28 of file elf.h.

#define R_XTENSA_SLOT0_ALT   35

Definition at line 58 of file elf.h.

#define R_XTENSA_SLOT0_OP   20

Definition at line 43 of file elf.h.

#define R_XTENSA_SLOT10_ALT   45

Definition at line 68 of file elf.h.

#define R_XTENSA_SLOT10_OP   30

Definition at line 53 of file elf.h.

#define R_XTENSA_SLOT11_ALT   46

Definition at line 69 of file elf.h.

#define R_XTENSA_SLOT11_OP   31

Definition at line 54 of file elf.h.

#define R_XTENSA_SLOT12_ALT   47

Definition at line 70 of file elf.h.

#define R_XTENSA_SLOT12_OP   32

Definition at line 55 of file elf.h.

#define R_XTENSA_SLOT13_ALT   48

Definition at line 71 of file elf.h.

#define R_XTENSA_SLOT13_OP   33

Definition at line 56 of file elf.h.

#define R_XTENSA_SLOT14_ALT   49

Definition at line 72 of file elf.h.

#define R_XTENSA_SLOT14_OP   34

Definition at line 57 of file elf.h.

#define R_XTENSA_SLOT1_ALT   36

Definition at line 59 of file elf.h.

#define R_XTENSA_SLOT1_OP   21

Definition at line 44 of file elf.h.

#define R_XTENSA_SLOT2_ALT   37

Definition at line 60 of file elf.h.

#define R_XTENSA_SLOT2_OP   22

Definition at line 45 of file elf.h.

#define R_XTENSA_SLOT3_ALT   38

Definition at line 61 of file elf.h.

#define R_XTENSA_SLOT3_OP   23

Definition at line 46 of file elf.h.

#define R_XTENSA_SLOT4_ALT   39

Definition at line 62 of file elf.h.

#define R_XTENSA_SLOT4_OP   24

Definition at line 47 of file elf.h.

#define R_XTENSA_SLOT5_ALT   40

Definition at line 63 of file elf.h.

#define R_XTENSA_SLOT5_OP   25

Definition at line 48 of file elf.h.

#define R_XTENSA_SLOT6_ALT   41

Definition at line 64 of file elf.h.

#define R_XTENSA_SLOT6_OP   26

Definition at line 49 of file elf.h.

#define R_XTENSA_SLOT7_ALT   42

Definition at line 65 of file elf.h.

#define R_XTENSA_SLOT7_OP   27

Definition at line 50 of file elf.h.

#define R_XTENSA_SLOT8_ALT   43

Definition at line 66 of file elf.h.

#define R_XTENSA_SLOT8_OP   28

Definition at line 51 of file elf.h.

#define R_XTENSA_SLOT9_ALT   44

Definition at line 67 of file elf.h.

#define R_XTENSA_SLOT9_OP   29

Definition at line 52 of file elf.h.

#define SET_PERSONALITY (   ex)    set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))

Definition at line 192 of file elf.h.

Typedef Documentation

typedef unsigned int elf_fpreg_t

Definition at line 97 of file elf.h.

Definition at line 98 of file elf.h.

typedef unsigned long elf_greg_t

Definition at line 76 of file elf.h.

Definition at line 93 of file elf.h.

Function Documentation

void do_copy_regs ( xtensa_gregset_t ,
struct pt_regs ,
struct task_struct  
)
int do_restore_fpregs ( elf_fpregset_t ,
struct pt_regs ,
struct task_struct  
)
void do_restore_regs ( xtensa_gregset_t ,
struct pt_regs ,
struct task_struct  
)
void do_save_fpregs ( elf_fpregset_t ,
struct pt_regs ,
struct task_struct  
)
void xtensa_elf_core_copy_regs ( xtensa_gregset_t ,
struct pt_regs  
)

Definition at line 331 of file process.c.