ARM: common: fiq_dbg: Spew regs and stack at entry
Kamal Kannan Balagopalan [Sat, 23 Jun 2012 07:33:30 +0000 (00:33 -0700)]
Dump all registers and callstack immediately after entering
the FIQ handler.

Bug 970018

Change-Id: Iab48f5a942b45015a9def0839cf3ef721dda8a5c
Signed-off-by: Kamal Kannan Balagopalan <kbalagopalan@nvidia.com>
Reviewed-on: http://git-master/r/110954
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Steve Kuo <stevek@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

arch/arm/common/fiq_debugger.c

index 1908ba9..0245f6c 100644 (file)
@@ -863,6 +863,9 @@ static void debug_fiq(struct fiq_glue_handler *h, void *regs, void *svc_sp)
        unsigned int this_cpu = THREAD_INFO(svc_sp)->cpu;
        bool need_irq;
 
+       /* Spew regs and callstack immediately after entering FIQ handler */
+       debug_fiq_exec(state, "allregs", regs, svc_sp);
+       debug_fiq_exec(state, "bt", regs, svc_sp);
        need_irq = debug_handle_uart_interrupt(state, this_cpu, regs, svc_sp);
        if (need_irq)
                debug_force_irq(state);