提交 3126976b 编写于 作者: W Will Deacon 提交者: Catalin Marinas

arm64: debug: fix mdscr.ss check when enabling debug exceptions

When we take an exception at EL1, we only want to enable debug
exceptions if we're not currently stepping, otherwise we can easily get
stuck in a loop stepping into interrupt handlers.

Unfortunately, the current code tests the wrong bit in the mdscr, so fix
that.
Signed-off-by: NWill Deacon <will.deacon@arm.com>
Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
上级 02e3cba6
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
.macro enable_dbg_if_not_stepping, tmp .macro enable_dbg_if_not_stepping, tmp
mrs \tmp, mdscr_el1 mrs \tmp, mdscr_el1
tbnz \tmp, #1, 9990f tbnz \tmp, #0, 9990f
enable_dbg enable_dbg
9990: 9990:
.endm .endm
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册