Home
last modified time | relevance | path

Searched refs:dbcr0 (Results 1 – 10 of 10) sorted by relevance

/Linux-v6.1/arch/powerpc/kernel/ptrace/
Dptrace-adv.c13 task->thread.debug.dbcr0 &= ~DBCR0_BT; in user_enable_single_step()
14 task->thread.debug.dbcr0 |= DBCR0_IDM | DBCR0_IC; in user_enable_single_step()
25 task->thread.debug.dbcr0 &= ~DBCR0_IC; in user_enable_block_step()
26 task->thread.debug.dbcr0 = DBCR0_IDM | DBCR0_BT; in user_enable_block_step()
43 task->thread.debug.dbcr0 &= ~(DBCR0_IC | DBCR0_BT); in user_disable_single_step()
47 if (!DBCR_ACTIVE_EVENTS(task->thread.debug.dbcr0, in user_disable_single_step()
52 task->thread.debug.dbcr0 &= ~DBCR0_IDM; in user_disable_single_step()
114 if (!DBCR_ACTIVE_EVENTS(task->thread.debug.dbcr0, in ptrace_set_debugreg()
117 task->thread.debug.dbcr0 &= ~DBCR0_IDM; in ptrace_set_debugreg()
128 task->thread.debug.dbcr0 |= DBCR0_IDM; in ptrace_set_debugreg()
[all …]
/Linux-v6.1/arch/powerpc/kernel/
Dinterrupt.c77 unsigned long dbcr0 = current->thread.debug.dbcr0; in booke_load_dbcr0() local
79 if (likely(!(dbcr0 & DBCR0_IDM))) in booke_load_dbcr0()
91 mtspr(SPRN_DBCR0, dbcr0); in booke_load_dbcr0()
Dtraps.c582 #define single_stepping(regs) (current->thread.debug.dbcr0 & DBCR0_IC)
583 #define clear_single_step(regs) (current->thread.debug.dbcr0 &= ~DBCR0_IC)
1959 current->thread.debug.dbcr0 &= ~DBCR0_IAC1; in handle_debug()
1965 current->thread.debug.dbcr0 &= ~DBCR0_IAC2; in handle_debug()
1970 current->thread.debug.dbcr0 &= ~DBCR0_IAC3; in handle_debug()
1976 current->thread.debug.dbcr0 &= ~DBCR0_IAC4; in handle_debug()
1986 if (DBCR_ACTIVE_EVENTS(current->thread.debug.dbcr0, in handle_debug()
1991 current->thread.debug.dbcr0 &= ~DBCR0_IDM; in handle_debug()
1994 mtspr(SPRN_DBCR0, current->thread.debug.dbcr0); in handle_debug()
2018 current->thread.debug.dbcr0 &= ~DBCR0_BT; in DEFINE_INTERRUPT_HANDLER()
[all …]
Dprocess.c702 thread->debug.dbcr0 = 0; in set_debug_reg_defaults()
740 mtspr(SPRN_DBCR0, debug->dbcr0); in prime_debug_regs()
753 if ((current->thread.debug.dbcr0 & DBCR0_IDM) in switch_booke_debug_regs()
754 || (new_debug->dbcr0 & DBCR0_IDM)) in switch_booke_debug_regs()
Dsignal_32.c1198 unsigned long new_dbcr0 = current->thread.debug.dbcr0; in SYSCALL_DEFINE3()
1248 current->thread.debug.dbcr0 = new_dbcr0; in SYSCALL_DEFINE3()
/Linux-v6.1/arch/powerpc/include/asm/
Dreg_booke.h389 #define dbcr_iac_range(task) ((task)->thread.debug.dbcr0)
417 #define DBCR_ACTIVE_EVENTS(dbcr0, dbcr1) (((dbcr0) & DBCR0_ACTIVE_EVENTS) || \ argument
449 #define dbcr_dac(task) ((task)->thread.debug.dbcr0)
519 #define DBCR_ACTIVE_EVENTS(dbcr0, dbcr1) (((dbcr0) & DBCR0_ACTIVE_EVENTS) || \ argument
Dinterrupt.h143 unsigned long dbcr0 = current->thread.debug.dbcr0; in booke_restore_dbcr0() local
145 if (IS_ENABLED(CONFIG_PPC32) && unlikely(dbcr0 & DBCR0_IDM)) { in booke_restore_dbcr0()
Dprocessor.h100 uint32_t dbcr0; member
/Linux-v6.1/arch/powerpc/kvm/
Dbooke.c879 (vcpu->arch.dbg_reg.dbcr0 & DBCR0_IDM)) in kvmppc_handle_debug()
1897 dbg_reg->dbcr0 |= DBCR0_IAC1; in kvmppc_booke_add_breakpoint()
1901 dbg_reg->dbcr0 |= DBCR0_IAC2; in kvmppc_booke_add_breakpoint()
1906 dbg_reg->dbcr0 |= DBCR0_IAC3; in kvmppc_booke_add_breakpoint()
1910 dbg_reg->dbcr0 |= DBCR0_IAC4; in kvmppc_booke_add_breakpoint()
1918 dbg_reg->dbcr0 |= DBCR0_IDM; in kvmppc_booke_add_breakpoint()
1928 dbg_reg->dbcr0 |= DBCR0_DAC1R; in kvmppc_booke_add_watchpoint()
1930 dbg_reg->dbcr0 |= DBCR0_DAC1W; in kvmppc_booke_add_watchpoint()
1935 dbg_reg->dbcr0 |= DBCR0_DAC2R; in kvmppc_booke_add_watchpoint()
1937 dbg_reg->dbcr0 |= DBCR0_DAC2W; in kvmppc_booke_add_watchpoint()
[all …]
Dbooke_emulate.c225 vcpu->arch.dbg_reg.dbcr0 = spr_val; in kvmppc_booke_emulate_mtspr()
429 *spr_val = vcpu->arch.dbg_reg.dbcr0; in kvmppc_booke_emulate_mfspr()