Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
binfmt_elf32.c File Reference
#include <linux/spinlock.h>
#include <asm/processor.h>
#include <linux/module.h>
#include <linux/elfcore.h>
#include <linux/compat.h>
#include "../../../fs/binfmt_elf.c"

Go to the source code of this file.

Data Structures

struct  elf_prstatus32
 
struct  elf_prpsinfo32
 

Macros

#define ELF_CLASS   ELFCLASS32
 
#define ELF_CORE_COPY_REGS(dst, pt)
 
#define elf_prstatus   elf_prstatus32
 
#define elf_prpsinfo   elf_prpsinfo32
 
#define init_elf_binfmt   init_elf32_binfmt
 
#define ELF_PLATFORM   ("PARISC32\0")
 
#define SET_PERSONALITY(ex)
 
#define cputime_to_timeval   cputime_to_compat_timeval
 

Typedefs

typedef unsigned int elf_greg_t
 

Macro Definition Documentation

#define cputime_to_timeval   cputime_to_compat_timeval

Definition at line 94 of file binfmt_elf32.c.

#define ELF_CLASS   ELFCLASS32

Definition at line 13 of file binfmt_elf32.c.

#define ELF_CORE_COPY_REGS (   dst,
  pt 
)
Value:
memset(dst, 0, sizeof(dst)); /* don't leak any "random" bits */ \
{ int i; \
for (i = 0; i < 32; i++) dst[i] = (elf_greg_t) pt->gr[i]; \
for (i = 0; i < 8; i++) dst[32 + i] = (elf_greg_t) pt->sr[i]; \
} \
dst[40] = (elf_greg_t) pt->iaoq[0]; dst[41] = (elf_greg_t) pt->iaoq[1]; \
dst[42] = (elf_greg_t) pt->iasq[0]; dst[43] = (elf_greg_t) pt->iasq[1]; \
dst[44] = (elf_greg_t) pt->sar; dst[45] = (elf_greg_t) pt->iir; \
dst[46] = (elf_greg_t) pt->isr; dst[47] = (elf_greg_t) pt->ior; \
dst[48] = (elf_greg_t) mfctl(22); dst[49] = (elf_greg_t) mfctl(0); \
dst[50] = (elf_greg_t) mfctl(24); dst[51] = (elf_greg_t) mfctl(25); \
dst[52] = (elf_greg_t) mfctl(26); dst[53] = (elf_greg_t) mfctl(27); \
dst[54] = (elf_greg_t) mfctl(28); dst[55] = (elf_greg_t) mfctl(29); \
dst[56] = (elf_greg_t) mfctl(30); dst[57] = (elf_greg_t) mfctl(31); \
dst[58] = (elf_greg_t) mfctl( 8); dst[59] = (elf_greg_t) mfctl( 9); \
dst[60] = (elf_greg_t) mfctl(12); dst[61] = (elf_greg_t) mfctl(13); \
dst[62] = (elf_greg_t) mfctl(10); dst[63] = (elf_greg_t) mfctl(15);

Definition at line 15 of file binfmt_elf32.c.

#define ELF_PLATFORM   ("PARISC32\0")

Definition at line 80 of file binfmt_elf32.c.

Definition at line 62 of file binfmt_elf32.c.

Definition at line 43 of file binfmt_elf32.c.

#define init_elf_binfmt   init_elf32_binfmt

Definition at line 78 of file binfmt_elf32.c.

#define SET_PERSONALITY (   ex)
Value:
set_thread_flag(TIF_32BIT); \
current->thread.map_base = DEFAULT_MAP_BASE32; \
current->thread.task_size = DEFAULT_TASK_SIZE32 \

Definition at line 88 of file binfmt_elf32.c.

Typedef Documentation

typedef unsigned int elf_greg_t

Definition at line 35 of file binfmt_elf32.c.