diff options
author | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:16:31 -0600 |
---|---|---|
committer | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:16:31 -0600 |
commit | e2dd0131558df17e0945aa41bd043853f1d7fb34 (patch) | |
tree | bd640d05113246522ce1b72d13e25a1ab5031c1d /arch | |
parent | 7da4b4d4caa8c5129d925342a46243c365048488 (diff) |
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
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/irq.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 <asm/system.h> #include <asm/mach/time.h> +#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); } |