MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dbg_wb_write_reg

Function dbg_wb_write_reg

freebsd/arm/arm/debug_monitor.c:230–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static void
231dbg_wb_write_reg(int reg, int n, uint32_t val)
232{
233
234 switch (reg + n) {
235 SWITCH_CASES_WRITE_WB_REG(DBG_WB_WVR, val);
236 SWITCH_CASES_WRITE_WB_REG(DBG_WB_WCR, val);
237 SWITCH_CASES_WRITE_WB_REG(DBG_WB_BVR, val);
238 SWITCH_CASES_WRITE_WB_REG(DBG_WB_BCR, val);
239 default:
240 db_printf(
241 "trying to write to CP14 reg. using wrong opc2 %d\n",
242 reg >> OP2_SHIFT);
243 }
244 isb();
245}
246
247static __inline boolean_t
248dbg_capable(void)

Callers 6

kdb_cpu_set_singlestepFunction · 0.70
kdb_cpu_clear_singlestepFunction · 0.70
dbg_setup_xpointFunction · 0.70
dbg_remove_xpointFunction · 0.70
dbg_reset_stateFunction · 0.70
dbg_resume_dbregFunction · 0.70

Calls 1

db_printfFunction · 0.85

Tested by

no test coverage detected