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

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

Revision 1.1, Thu Nov 8 22:21:47 2007 UTC (16 years, 6 months ago) by init
Branch: MAIN
CVS Tags: HEAD

cut & paste platform-specific files from testarm; they're unvisited for now

/*
 * $Id: irq_trampoline.c,v 1.1 2007/11/08 22:21:47 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 irq_trampoline(void);
void __do_nothing_and_return(void);


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();
}