|
@@ -160,12 +160,16 @@ static int kgdb_compiled_brk_fn(struct pt_regs *regs, unsigned int instr)
|
|
static struct undef_hook kgdb_brkpt_hook = {
|
|
static struct undef_hook kgdb_brkpt_hook = {
|
|
.instr_mask = 0xffffffff,
|
|
.instr_mask = 0xffffffff,
|
|
.instr_val = KGDB_BREAKINST,
|
|
.instr_val = KGDB_BREAKINST,
|
|
|
|
+ .cpsr_mask = MODE_MASK,
|
|
|
|
+ .cpsr_val = SVC_MODE,
|
|
.fn = kgdb_brk_fn
|
|
.fn = kgdb_brk_fn
|
|
};
|
|
};
|
|
|
|
|
|
static struct undef_hook kgdb_compiled_brkpt_hook = {
|
|
static struct undef_hook kgdb_compiled_brkpt_hook = {
|
|
.instr_mask = 0xffffffff,
|
|
.instr_mask = 0xffffffff,
|
|
.instr_val = KGDB_COMPILED_BREAK,
|
|
.instr_val = KGDB_COMPILED_BREAK,
|
|
|
|
+ .cpsr_mask = MODE_MASK,
|
|
|
|
+ .cpsr_val = SVC_MODE,
|
|
.fn = kgdb_compiled_brk_fn
|
|
.fn = kgdb_compiled_brk_fn
|
|
};
|
|
};
|
|
|
|
|