arm64: debug: fix mdscr.ss check when enabling debug exceptions
authorWill Deacon <will.deacon@arm.com>
Fri, 17 May 2013 16:41:22 +0000 (17:41 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 17 May 2013 17:24:19 +0000 (18:24 +0100)
commit3126976be64bfb4c87297cb022ca815212079aec
tree57b76f1074134c968d930e99a3346ebb3484c0d6
parent02e3cba685efe61f0c3b10f1622c6a229ac93a61
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: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/assembler.h