aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2021-04-13 17:34:58 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2021-04-16 13:49:05 +0000
commitdbc54475c142215a8b85667b7ec2791cc06eb377 (patch)
tree44129fbcfe5c8c84fb0a605245b04dd368a8b159
parentc0422e6c365eca801bde5b2f644e3a7e4803dbc8 (diff)
downloadsrc-dbc54475c142215a8b85667b7ec2791cc06eb377.tar.gz
src-dbc54475c142215a8b85667b7ec2791cc06eb377.zip
arm64: adjust comments in dbg_monitor_exit()
These comments were copied from dbg_monitor_enter(), but the intended modifications weren't made. Update them to reflect what this code actually does. Sponsored by: The FreeBSD Foundation (cherry picked from commit 5742f2d89c03311e8b2d92422c0e2e4063cb2e1d)
-rw-r--r--sys/arm64/arm64/debug_monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm64/arm64/debug_monitor.c b/sys/arm64/arm64/debug_monitor.c
index d302c8c95b4f..a2b4b7e8b40b 100644
--- a/sys/arm64/arm64/debug_monitor.c
+++ b/sys/arm64/arm64/debug_monitor.c
@@ -549,11 +549,11 @@ dbg_monitor_exit(struct thread *thread, struct trapframe *frame)
if (!(SV_PROC_FLAG(thread->td_proc, SV_ILP32)))
frame->tf_spsr |= PSR_D;
if ((thread->td_pcb->pcb_dbg_regs.dbg_flags & DBGMON_ENABLED) != 0) {
- /* Install the kernel version of the registers */
+ /* Install the thread's version of the registers */
dbg_register_sync(&thread->td_pcb->pcb_dbg_regs);
frame->tf_spsr &= ~PSR_D;
} else if ((kernel_monitor.dbg_flags & DBGMON_ENABLED) != 0) {
- /* Disable the user breakpoints until we return to userspace */
+ /* Disable the kernel breakpoints until we re-enter */
for (i = 0; i < dbg_watchpoint_num; i++) {
dbg_wb_write_reg(DBG_REG_BASE_WCR, i, 0);
dbg_wb_write_reg(DBG_REG_BASE_WVR, i, 0);