ARC: ARCompact entry: elide re-reading ECR in ProtV handler
authorVineet Gupta <vgupta@synopsys.com>
Thu, 29 Sep 2016 22:19:46 +0000 (15:19 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 13 Dec 2016 21:16:11 +0000 (13:16 -0800)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/entry-compact.S

index 98812c1248dfaf85b28ed023287ae78f27286073..9211707634dcf57e1aa0ac13fa4a6bbc79b99eeb 100644 (file)
@@ -259,7 +259,7 @@ ENTRY(EV_TLBProtV)
 
        EXCEPTION_PROLOGUE
 
-       lr  r2, [ecr]
+       mov r2, r9      ; ECR set into r9 already
        lr  r0, [efa]   ; Faulting Data address (not part of pt_regs saved above)
 
        ; Exception auto-disables further Intr/exceptions.