Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
sstep.c File Reference
#include <linux/kernel.h>
#include <linux/kprobes.h>
#include <linux/ptrace.h>
#include <linux/prefetch.h>
#include <asm/sstep.h>
#include <asm/processor.h>
#include <asm/uaccess.h>
#include <asm/cputable.h>

Go to the source code of this file.

Macros

#define MSR_MASK   0x87c0ffff
 
#define XER_SO   0x80000000U
 
#define XER_OV   0x40000000U
 
#define XER_CA   0x20000000U
 
#define __put_user_asmx(x, addr, err, op, cr)
 
#define __get_user_asmx(x, addr, err, op)
 
#define __cacheop_user_asmx(addr, err, op)
 
#define MASK32(mb, me)
 
#define DATA32(x)   (x)
 
#define ROTATE(x, n)   ((n) ? (((x) << (n)) | ((x) >> (8 * sizeof(long) - (n)))) : (x))
 

Functions

int __kprobes emulate_step (struct pt_regs *regs, unsigned int instr)
 

Variables

char system_call_common []
 

Macro Definition Documentation

#define __cacheop_user_asmx (   addr,
  err,
  op 
)
Value:
__asm__ __volatile__( \
"1: "op" 0,%1\n" \
"2:\n" \
".section .fixup,\"ax\"\n" \
"3: li %0,%3\n" \
" b 2b\n" \
".previous\n" \
".section __ex_table,\"a\"\n" \
PPC_LONG "1b,3b\n" \
".previous" \
: "=r" (err) \
: "r" (addr), "i" (-EFAULT), "0" (err))

Definition at line 454 of file sstep.c.

#define __get_user_asmx (   x,
  addr,
  err,
  op 
)
Value:
__asm__ __volatile__( \
"1: "op" %1,0,%2\n" \
"2:\n" \
".section .fixup,\"ax\"\n" \
"3: li %0,%3\n" \
" b 2b\n" \
".previous\n" \
".section __ex_table,\"a\"\n" \
PPC_LONG "1b,3b\n" \
".previous" \
: "=r" (err), "=r" (x) \
: "r" (addr), "i" (-EFAULT), "0" (err))

Definition at line 439 of file sstep.c.

#define __put_user_asmx (   x,
  addr,
  err,
  op,
  cr 
)
Value:
__asm__ __volatile__( \
"1: " op " %2,0,%3\n" \
" mfcr %1\n" \
"2:\n" \
".section .fixup,\"ax\"\n" \
"3: li %0,%4\n" \
" b 2b\n" \
".previous\n" \
".section __ex_table,\"a\"\n" \
PPC_LONG "1b,3b\n" \
".previous" \
: "=r" (err), "=r" (cr) \
: "r" (x), "r" (addr), "i" (-EFAULT), "0" (err))

Definition at line 423 of file sstep.c.

#define DATA32 (   x)    (x)

Definition at line 550 of file sstep.c.

#define MASK32 (   mb,
  me 
)
Value:
((0xffffffffUL >> (mb)) + \
((signed long)-0x80000000L >> (me)) + ((me) >= (mb)))

Definition at line 542 of file sstep.c.

#define MSR_MASK   0x87c0ffff

Definition at line 26 of file sstep.c.

#define ROTATE (   x,
  n 
)    ((n) ? (((x) << (n)) | ((x) >> (8 * sizeof(long) - (n)))) : (x))

Definition at line 552 of file sstep.c.

#define XER_CA   0x20000000U

Definition at line 32 of file sstep.c.

#define XER_OV   0x40000000U

Definition at line 31 of file sstep.c.

#define XER_SO   0x80000000U

Definition at line 30 of file sstep.c.

Function Documentation

int __kprobes emulate_step ( struct pt_regs regs,
unsigned int  instr 
)

Definition at line 561 of file sstep.c.

Variable Documentation

char system_call_common[]