From e2dd0131558df17e0945aa41bd043853f1d7fb34 Mon Sep 17 00:00:00 2001 From: Quinn Jensen Date: Wed, 24 Oct 2007 21:16:31 -0600 Subject: Add CodeTEST functionality to the linux 2.6.22 kernel for ARM platforms. Ported to 2.6.22 by Ross Wille http://www.bitshrine.org/gpp/linux-2.6.22-mx-codetest.patch --- arch/arm/kernel/irq.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'arch') diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 11dcd52e51be..1c3d01754e2e 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c @@ -40,6 +40,15 @@ #include #include +#ifdef CONFIG_CODETEST +/* + * CodeTEST mods + */ +extern void ct_isr_enter(int irq); +extern void ct_isr_exit(int irq); + +#endif /* CONFIG_CODETEST */ + /* * No architecture-specific irq_finish function defined in arm/arch/irqs.h. */ @@ -122,12 +131,19 @@ asmlinkage void __exception asm_do_IRQ(unsigned int irq, struct pt_regs *regs) irq_enter(); +#ifdef CONFIG_CODETEST + ct_isr_enter(irq); +#endif /* CONFIG_CODETEST */ + desc_handle_irq(irq, desc); /* AT91 specific workaround */ irq_finish(irq); irq_exit(); +#ifdef CONFIG_CODETEST + ct_isr_exit(irq); +#endif /* CONFIG_CODETEST */ set_irq_regs(old_regs); } -- cgit v1.2.3