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

Go to the source code of this file.

Macros

#define __FRAME_OFFSETS
 
#define COPY2(X, Y)   regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y]
 
#define COPY(X)   regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X]
 

Functions

void get_regs_from_mc (struct uml_pt_regs *regs, mcontext_t *mc)
 

Macro Definition Documentation

#define __FRAME_OFFSETS

Definition at line 2 of file mcontext.c.

#define COPY (   X)    regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X]
#define COPY2 (   X,
 
)    regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y]

Function Documentation

void get_regs_from_mc ( struct uml_pt_regs regs,
mcontext_t mc 
)

Definition at line 6 of file mcontext.c.