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

Function dbg_wb_read_reg

freebsd/arm/arm/debug_monitor.c:209–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 WRITE_WB_REG_CASE(op2, 15, val)
208
209static uint32_t
210dbg_wb_read_reg(int reg, int n)
211{
212 uint32_t val;
213
214 val = 0;
215
216 switch (reg + n) {
217 SWITCH_CASES_READ_WB_REG(DBG_WB_WVR, val);
218 SWITCH_CASES_READ_WB_REG(DBG_WB_WCR, val);
219 SWITCH_CASES_READ_WB_REG(DBG_WB_BVR, val);
220 SWITCH_CASES_READ_WB_REG(DBG_WB_BCR, val);
221 default:
222 db_printf(
223 "trying to read from CP14 reg. using wrong opc2 %d\n",
224 reg >> OP2_SHIFT);
225 }
226
227 return (val);
228}
229
230static void
231dbg_wb_write_reg(int reg, int n, uint32_t val)

Callers 5

kdb_cpu_set_singlestepFunction · 0.70
kdb_cpu_clear_singlestepFunction · 0.70
dbg_show_watchpointFunction · 0.70
dbg_check_slot_freeFunction · 0.70
dbg_find_slotFunction · 0.70

Calls 1

db_printfFunction · 0.85

Tested by

no test coverage detected