From: oharboe at B. <oh...@ma...> - 2009-09-04 10:22:03
|
Author: oharboe Date: 2009-09-04 10:22:02 +0200 (Fri, 04 Sep 2009) New Revision: 2668 Modified: trunk/src/target/cortex_a8.c Log: Matt Hsu <ma...@0x...> This patch simply enables the halting debug mode. By enabling this bit, the processor halts when a debug event such as breakpoint occurs. Modified: trunk/src/target/cortex_a8.c =================================================================== --- trunk/src/target/cortex_a8.c 2009-09-04 08:21:18 UTC (rev 2667) +++ trunk/src/target/cortex_a8.c 2009-09-04 08:22:02 UTC (rev 2668) @@ -430,6 +430,13 @@ retval = mem_ap_write_atomic_u32(swjdp, OMAP3530_DEBUG_BASE + CPUDBG_DRCR, 0x1); + /* + * enter halting debug mode + */ + mem_ap_read_atomic_u32(swjdp, OMAP3530_DEBUG_BASE + CPUDBG_DSCR, &dscr); + retval = mem_ap_write_atomic_u32(swjdp, + OMAP3530_DEBUG_BASE + CPUDBG_DSCR, dscr | (1 << DSCR_HALT_DBG_MODE)); + if (retval != ERROR_OK) goto out; |