[BACK]Return to irq_trampoline.c CVS log [TXT][DIR] Up to [local] / funnyos / arch / testarm / boot

File: [local] / funnyos / arch / testarm / boot / irq_trampoline.c (download)

Revision 1.2, Fri Nov 2 12:33:53 2007 UTC (16 years, 7 months ago) by init
Branch: MAIN
Changes since 1.1: +10 -2 lines

make irq_trampoline function that calls irq_trampoline_func (which will be overrided by irqc)

/*
 * $Id: irq_trampoline.c,v 1.2 2007/11/02 12:33:53 init Exp $
 */

/*
 * IRQ trampoline.
 * Will enter here when Core IRQ line is asserted.
 * IRQ controller driver configures us to call him on assert;
 * by default (until some irqc attached) we just return doing nothing.
 */

void
__do_nothing_and_return(void)
{

	__asm __volatile("mov r1,r1");
}

void 	(*irq_trampoline_func)(void) = __do_nothing_and_return;


void
irq_trampoline(void)
{
	irq_trampoline_func();
}