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

Go to the source code of this file.

Macros

#define PseudoDbg_Assert_opcode   0xf0000000
 
#define PseudoDbg_Assert_expected_bits   0
 
#define PseudoDbg_Assert_expected_mask   0xffff
 
#define PseudoDbg_Assert_regtest_bits   16
 
#define PseudoDbg_Assert_regtest_mask   0x7
 
#define PseudoDbg_Assert_grp_bits   19
 
#define PseudoDbg_Assert_grp_mask   0x7
 
#define PseudoDbg_Assert_dbgop_bits   22
 
#define PseudoDbg_Assert_dbgop_mask   0x3
 
#define PseudoDbg_Assert_dontcare_bits   24
 
#define PseudoDbg_Assert_dontcare_mask   0x7
 
#define PseudoDbg_Assert_code_bits   27
 
#define PseudoDbg_Assert_code_mask   0x1f
 
#define PseudoDbg_opcode   0xf8000000
 
#define PseudoDbg_reg_bits   0
 
#define PseudoDbg_reg_mask   0x7
 
#define PseudoDbg_grp_bits   3
 
#define PseudoDbg_grp_mask   0x7
 
#define PseudoDbg_fn_bits   6
 
#define PseudoDbg_fn_mask   0x3
 
#define PseudoDbg_code_bits   8
 
#define PseudoDbg_code_mask   0xff
 

Functions

bool execute_pseudodbg_assert (struct pt_regs *fp, unsigned int opcode)
 
bool execute_pseudodbg (struct pt_regs *fp, unsigned int opcode)
 

Variables

const char *const greg_names []
 

Macro Definition Documentation

#define PseudoDbg_Assert_code_bits   27

Definition at line 100 of file pseudodbg.c.

#define PseudoDbg_Assert_code_mask   0x1f

Definition at line 101 of file pseudodbg.c.

#define PseudoDbg_Assert_dbgop_bits   22

Definition at line 96 of file pseudodbg.c.

#define PseudoDbg_Assert_dbgop_mask   0x3

Definition at line 97 of file pseudodbg.c.

#define PseudoDbg_Assert_dontcare_bits   24

Definition at line 98 of file pseudodbg.c.

#define PseudoDbg_Assert_dontcare_mask   0x7

Definition at line 99 of file pseudodbg.c.

#define PseudoDbg_Assert_expected_bits   0

Definition at line 90 of file pseudodbg.c.

#define PseudoDbg_Assert_expected_mask   0xffff

Definition at line 91 of file pseudodbg.c.

#define PseudoDbg_Assert_grp_bits   19

Definition at line 94 of file pseudodbg.c.

#define PseudoDbg_Assert_grp_mask   0x7

Definition at line 95 of file pseudodbg.c.

#define PseudoDbg_Assert_opcode   0xf0000000

Definition at line 89 of file pseudodbg.c.

#define PseudoDbg_Assert_regtest_bits   16

Definition at line 92 of file pseudodbg.c.

#define PseudoDbg_Assert_regtest_mask   0x7

Definition at line 93 of file pseudodbg.c.

#define PseudoDbg_code_bits   8

Definition at line 152 of file pseudodbg.c.

#define PseudoDbg_code_mask   0xff

Definition at line 153 of file pseudodbg.c.

#define PseudoDbg_fn_bits   6

Definition at line 150 of file pseudodbg.c.

#define PseudoDbg_fn_mask   0x3

Definition at line 151 of file pseudodbg.c.

#define PseudoDbg_grp_bits   3

Definition at line 148 of file pseudodbg.c.

#define PseudoDbg_grp_mask   0x7

Definition at line 149 of file pseudodbg.c.

#define PseudoDbg_opcode   0xf8000000

Definition at line 145 of file pseudodbg.c.

#define PseudoDbg_reg_bits   0

Definition at line 146 of file pseudodbg.c.

#define PseudoDbg_reg_mask   0x7

Definition at line 147 of file pseudodbg.c.

Function Documentation

bool execute_pseudodbg ( struct pt_regs fp,
unsigned int  opcode 
)

Definition at line 158 of file pseudodbg.c.

bool execute_pseudodbg_assert ( struct pt_regs fp,
unsigned int  opcode 
)

Definition at line 106 of file pseudodbg.c.

Variable Documentation

const char* const greg_names[]
Initial value:
= {
"R0", "R1", "R2", "R3", "R4", "R5", "R6", "R7",
"P0", "P1", "P2", "P3", "P4", "P5", "SP", "FP",
"I0", "I1", "I2", "I3", "M0", "M1", "M2", "M3",
"B0", "B1", "B2", "B3", "L0", "L1", "L2", "L3",
"A0.X", "A0.W", "A1.X", "A1.W", "<res>", "<res>", "ASTAT", "RETS",
"<res>", "<res>", "<res>", "<res>", "<res>", "<res>", "<res>", "<res>",
"LC0", "LT0", "LB0", "LC1", "LT1", "LB1", "CYCLES", "CYCLES2",
"USP", "SEQSTAT", "SYSCFG", "RETI", "RETX", "RETN", "RETE", "EMUDAT",
}

Definition at line 12 of file pseudodbg.c.