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

Go to the source code of this file.

Data Structures

struct  optable
 
struct  optables_list
 

Macros

#define CCR_MASK   0x6f /* mode/imask not set */
 
#define BREAKINST   0x5730 /* trapa #3 */
 
#define OPTABLE(ptn, msk, len, jmp)
 
#define OPTABLES(no)
 

Enumerations

enum  jump_type {
  none, jabs, ind, ret,
  reg, relb, relw
}
 

Functions

long h8300_get_reg (struct task_struct *task, int regno)
 
int h8300_put_reg (struct task_struct *task, int regno, unsigned long data)
 
void user_disable_single_step (struct task_struct *child)
 
struct optable __attribute__ ((aligned(1), packed))
 
void user_enable_single_step (struct task_struct *child)
 
asmlinkage void trace_trap (unsigned long bp)
 

Variables

unsigned char bitpattern
 
unsigned char bitmask
 
signed char length
 
signed char type
 
const unsigned char condmask []
 

Macro Definition Documentation

#define BREAKINST   0x5730 /* trapa #3 */

Definition at line 17 of file ptrace_h8300h.c.

#define CCR_MASK   0x6f /* mode/imask not set */

Definition at line 16 of file ptrace_h8300h.c.

#define OPTABLE (   ptn,
  msk,
  len,
  jmp 
)
Value:
{ \
.bitpattern = ptn, \
.bitmask = msk, \
.length = len, \
.type = jmp, \
}

Definition at line 93 of file ptrace_h8300h.c.

#define OPTABLES (   no)
Value:
{ \
.ptr = optable_##no, \
.size = sizeof(optable_##no) / sizeof(struct optable), \
}

Enumeration Type Documentation

enum jump_type
Enumerator:
none 
jabs 
ind 
ret 
reg 
relb 
relw 

Definition at line 72 of file ptrace_h8300h.c.

Function Documentation

struct optable __attribute__ ( (aligned(1), packed)  )
long h8300_get_reg ( struct task_struct task,
int  regno 
)

Definition at line 29 of file ptrace_h8300h.c.

int h8300_put_reg ( struct task_struct task,
int  regno,
unsigned long  data 
)

Definition at line 42 of file ptrace_h8300h.c.

asmlinkage void trace_trap ( unsigned long  bp)

Definition at line 276 of file ptrace_h8300h.c.

void user_disable_single_step ( struct task_struct child)

Definition at line 63 of file ptrace_h8300h.c.

void user_enable_single_step ( struct task_struct child)

Definition at line 267 of file ptrace_h8300h.c.

Variable Documentation

unsigned char bitmask

Definition at line 93 of file ptrace_h8300h.c.

unsigned char bitpattern

Definition at line 92 of file ptrace_h8300h.c.

const unsigned char condmask[]
Initial value:
= {
0x00,0x40,0x01,0x04,0x02,0x08,0x10,0x20
}

Definition at line 175 of file ptrace_h8300h.c.

__le16 length

Definition at line 94 of file ptrace_h8300h.c.

signed char type

Definition at line 95 of file ptrace_h8300h.c.