summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/entry-arcv2.S
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2018-06-06 10:20:37 -0700
committerVineet Gupta <vgupta@synopsys.com>2019-02-21 11:03:18 -0800
commite494239a007e601448110ac304fe055951f9de3b (patch)
tree2814f3f12bddf8a5cda6c50ff5523a5066a03cb9 /arch/arc/kernel/entry-arcv2.S
parentd5e3c55e01d8b1774b37b4647c30fb22f1d39077 (diff)
downloadlinux-stable-e494239a007e601448110ac304fe055951f9de3b.tar.gz
linux-stable-e494239a007e601448110ac304fe055951f9de3b.tar.bz2
linux-stable-e494239a007e601448110ac304fe055951f9de3b.zip
ARCv2: support manual regfile save on interrupts
There's a hardware bug which affects the HSDK platform, triggered by micro-ops for auto-saving regfile on taken interrupt. The workaround is to inhibit autosave. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/entry-arcv2.S')
-rw-r--r--arch/arc/kernel/entry-arcv2.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arc/kernel/entry-arcv2.S b/arch/arc/kernel/entry-arcv2.S
index cc558a25b8fa..562089d62d9d 100644
--- a/arch/arc/kernel/entry-arcv2.S
+++ b/arch/arc/kernel/entry-arcv2.S
@@ -209,7 +209,9 @@ restore_regs:
;####### Return from Intr #######
debug_marker_l1:
- bbit1.nt r0, STATUS_DE_BIT, .Lintr_ret_to_delay_slot
+ ; bbit1.nt r0, STATUS_DE_BIT, .Lintr_ret_to_delay_slot
+ btst r0, STATUS_DE_BIT ; Z flag set if bit clear
+ bnz .Lintr_ret_to_delay_slot ; branch if STATUS_DE_BIT set
.Lisr_ret_fast_path:
; Handle special case #1: (Entry via Exception, Return via IRQ)