|
@@ -165,21 +165,12 @@ postcore_initcall(debug_monitors_init);
|
|
*/
|
|
*/
|
|
static void set_regs_spsr_ss(struct pt_regs *regs)
|
|
static void set_regs_spsr_ss(struct pt_regs *regs)
|
|
{
|
|
{
|
|
- unsigned long spsr;
|
|
|
|
-
|
|
|
|
- spsr = regs->pstate;
|
|
|
|
- spsr &= ~DBG_SPSR_SS;
|
|
|
|
- spsr |= DBG_SPSR_SS;
|
|
|
|
- regs->pstate = spsr;
|
|
|
|
|
|
+ regs->pstate |= DBG_SPSR_SS;
|
|
}
|
|
}
|
|
|
|
|
|
static void clear_regs_spsr_ss(struct pt_regs *regs)
|
|
static void clear_regs_spsr_ss(struct pt_regs *regs)
|
|
{
|
|
{
|
|
- unsigned long spsr;
|
|
|
|
-
|
|
|
|
- spsr = regs->pstate;
|
|
|
|
- spsr &= ~DBG_SPSR_SS;
|
|
|
|
- regs->pstate = spsr;
|
|
|
|
|
|
+ regs->pstate &= ~DBG_SPSR_SS;
|
|
}
|
|
}
|
|
|
|
|
|
/* EL1 Single Step Handler hooks */
|
|
/* EL1 Single Step Handler hooks */
|