aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v32
diff options
context:
space:
mode:
authorRabin Vincent <rabin@rab.in>2015-02-19 15:36:55 -0500
committerJesper Nilsson <jespern@axis.com>2015-09-04 18:56:49 -0400
commit444e0c2881bcc70db6833d9c653c6ced36813d3b (patch)
tree49a9229250dd0772fabe063b691d80273b882ad2 /arch/cris/arch-v32
parent20ae24739968ae7f94d0e73215d444042f91df78 (diff)
CRISv32: add support for irqflags tracing
Add support irqflags tracing, which is required for things like lockdep and ftrace. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/arch-v32')
-rw-r--r--arch/cris/arch-v32/kernel/entry.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/cris/arch-v32/kernel/entry.S b/arch/cris/arch-v32/kernel/entry.S
index 1c5595a6ceb5..b17a20999f87 100644
--- a/arch/cris/arch-v32/kernel/entry.S
+++ b/arch/cris/arch-v32/kernel/entry.S
@@ -240,6 +240,17 @@ ret_from_sys_call:
240 240
241 .type _Rexit,@function 241 .type _Rexit,@function
242_Rexit: 242_Rexit:
243#if defined(CONFIG_TRACE_IRQFLAGS)
244 addoq +PT_ccs, $sp, $acr
245 move.d [$acr], $r0
246 btstq 15, $r0 ; I1
247 bpl 1f
248 nop
249 jsr trace_hardirqs_on
250 nop
2511:
252#endif
253
243 ;; This epilogue MUST match the prologues in multiple_interrupt, irq.h 254 ;; This epilogue MUST match the prologues in multiple_interrupt, irq.h
244 ;; and ptregs.h. 255 ;; and ptregs.h.
245 addq 4, $sp ; Skip orig_r10. 256 addq 4, $sp ; Skip orig_r10.