提交 c80417b6 编写于 作者: V Vineet Gupta

ARC: entry.S: use single EXCEPTION_PROLOGUE

Returning from pure kernel mode and exception mode use the same code
anyways. Remove one the duplicate blocks
Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
上级 62fb6403
...@@ -321,14 +321,11 @@ END(call_do_page_fault) ...@@ -321,14 +321,11 @@ END(call_do_page_fault)
; decide that. ; decide that.
; if Returning from Exception ; if Returning from Exception
bbit0 r10, STATUS_AE_BIT, not_exception btst r10, STATUS_AE_BIT
EXCEPTION_EPILOGUE bnz .Lexcep_ret
rtie
; Not Exception so maybe Interrupts (Level 1 or 2) ; Not Exception so maybe Interrupts (Level 1 or 2)
not_exception:
#ifdef CONFIG_ARC_COMPACT_IRQ_LEVELS #ifdef CONFIG_ARC_COMPACT_IRQ_LEVELS
; Level 2 interrupt return Path - from hardware standpoint ; Level 2 interrupt return Path - from hardware standpoint
...@@ -377,16 +374,17 @@ not_level2_interrupt: ...@@ -377,16 +374,17 @@ not_level2_interrupt:
#endif #endif
bbit0 r10, STATUS_A1_BIT, not_level1_interrupt bbit0 r10, STATUS_A1_BIT, .Lpure_k_mode_ret
;return from level 1 ;return from level 1
INTERRUPT_EPILOGUE 1 INTERRUPT_EPILOGUE 1
debug_marker_l1: debug_marker_l1:
rtie rtie
not_level1_interrupt: .Lexcep_ret:
.Lpure_k_mode_ret:
;this case is for syscalls or Exceptions (with fake rtie) ;this case is for syscalls or Exceptions or pure kernel mode
EXCEPTION_EPILOGUE EXCEPTION_EPILOGUE
debug_marker_syscall: debug_marker_syscall:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册