diff options
author | Tom Hughes <tomhughes@chromium.org> | 2021-02-19 15:02:23 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-23 21:42:25 +0000 |
commit | 6d79f593f5077700dd773bd3b54405d9b9a123db (patch) | |
tree | 25ab0a5b059da1638b0f516f07585cca48898329 /core/cortex-m0 | |
parent | a5a81dca4579961b9d78c7c85442d76b3c87dbbb (diff) | |
download | chrome-ec-6d79f593f5077700dd773bd3b54405d9b9a123db.tar.gz |
cortex-m/m0: Add Debug Halting Control and Status Register
For Cortex-M0, see "C1.6.3 Debug Halting Control and Status Register,
DHCSR" in the ARMv6-M Architecture Reference Manual.
For other Cortex-M, see "C1.6.2 Debug Halting Control and Status
Register, DHCSR" in the ARMv7-M Architecture Reference Manual or
https://developer.arm.com/documentation/ddi0337/e/core-debug/core-debug-registers/debug-halting-control-and-status-register.
BRANCH=none
BUG=b:180144572
TEST=Using Segger J-Trace Pro with icetower v0.1, verify
debugger_is_connected is true when debugger is attached and false
otherwise
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I748fc26c0db4351be5a83086fdb843e5651b5425
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2713753
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'core/cortex-m0')
-rw-r--r-- | core/cortex-m0/build.mk | 2 | ||||
l--------- | core/cortex-m0/debug.c | 1 | ||||
l--------- | core/cortex-m0/debug.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/core/cortex-m0/build.mk b/core/cortex-m0/build.mk index a314976bce..b0136f347e 100644 --- a/core/cortex-m0/build.mk +++ b/core/cortex-m0/build.mk @@ -20,7 +20,7 @@ CFLAGS_CPU+=-flto LDFLAGS_EXTRA+=-flto endif -core-y=cpu.o init.o thumb_case.o div.o lmul.o ldivmod.o mula.o uldivmod.o +core-y=cpu.o debug.o init.o thumb_case.o div.o lmul.o ldivmod.o mula.o uldivmod.o core-y+=vecttable.o __builtin.o core-$(CONFIG_COMMON_PANIC_OUTPUT)+=panic.o core-$(CONFIG_COMMON_RUNTIME)+=switch.o task.o diff --git a/core/cortex-m0/debug.c b/core/cortex-m0/debug.c new file mode 120000 index 0000000000..3cada87897 --- /dev/null +++ b/core/cortex-m0/debug.c @@ -0,0 +1 @@ +../cortex-m/debug.c
\ No newline at end of file diff --git a/core/cortex-m0/debug.h b/core/cortex-m0/debug.h new file mode 120000 index 0000000000..d79be16190 --- /dev/null +++ b/core/cortex-m0/debug.h @@ -0,0 +1 @@ +../cortex-m/debug.h
\ No newline at end of file |