Skip to content

Commit bb1b94f

Browse files
committed
arm: Support hardware debug
Support hardware debugging of ARM architecture, and support smp mode.We can use "up_debugpoint_add" or "up_debugpoint_remove" to add breakpoints, and the hardware will jump into the interrupt after detecting it. It will not affect our program. Registration callback is not supported yet,the debug of arm32 jumps into the exception vector table, and it is also necessary to develop the jump function of the exception vector table in debug mode TODO: Support singlestep Signed-off-by: wangmingrong1 <[email protected]>
1 parent 118f827 commit bb1b94f

File tree

3 files changed

+630
-1
lines changed

3 files changed

+630
-1
lines changed

arch/arm/src/armv7-a/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ list(
3737
arm_cache.c
3838
arm_cpuinfo.c
3939
arm_dataabort.c
40+
arm_hwdebug.c
4041
arm_doirq.c
4142
arm_gicv2.c
4243
arm_gicv2_dump.c

arch/arm/src/armv7-a/Make.defs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ CMN_ASRCS += arm_cpuhead.S arm_vectors.S arm_saveusercontext.S
4343
# Common C source files
4444

4545
CMN_CSRCS += arm_cache.c arm_cpuinfo.c arm_dataabort.c
46-
CMN_CSRCS += arm_doirq.c arm_gicv2.c arm_gicv2_dump.c
46+
CMN_CSRCS += arm_hwdebug.c arm_doirq.c arm_gicv2.c arm_gicv2_dump.c
4747
CMN_CSRCS += arm_initialstate.c arm_mmu.c arm_prefetchabort.c
4848
CMN_CSRCS += arm_schedulesigaction.c arm_sigdeliver.c
4949
CMN_CSRCS += arm_syscall.c arm_tcbinfo.c arm_undefinedinsn.c

0 commit comments

Comments
 (0)