summaryrefslogtreecommitdiff
path: root/include/asm-parisc/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPaul Walmsley <pjw@kernel.org>2026-03-23 17:43:47 -0600
committerPaul Walmsley <pjw@kernel.org>2026-04-04 18:36:52 -0600
commit834911eb8eef2501485d819b4eabebadc25c3497 (patch)
tree014eaa518592b4d9a903ad9cec11146bd51be1c6 /include/asm-parisc/git@git.tavy.me:linux.git
parentc369299895a591d96745d6492d4888259b004a9e (diff)
riscv: kgdb: fix several debug register assignment bugs
Fix several bugs in the RISC-V kgdb implementation: - The element of dbg_reg_def[] that is supposed to pertain to the S1 register embeds instead the struct pt_regs offset of the A1 register. Fix this to use the S1 register offset in struct pt_regs. - The sleeping_thread_to_gdb_regs() function copies the value of the S10 register into the gdb_regs[] array element meant for the S9 register, and copies the value of the S11 register into the array element meant for the S10 register. It also neglects to copy the value of the S11 register. Fix all of these issues. Fixes: fe89bd2be8667 ("riscv: Add KGDB support") Cc: Vincent Chen <vincent.chen@sifive.com> Link: https://patch.msgid.link/fde376f8-bcfd-bfe4-e467-07d8f7608d05@kernel.org Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/asm-parisc/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions