rockbox/utils/atj2137/adfuload/test_binary/timer_irq/test.lds
Marcin Bukat 7552542288 atj213x: Simple test exploring irq handling
This test software setups timer T0 periodic interrupt.
In ISR it changes backlight level. The interrupt handler
does not support nesting and the whole ISR is run in interrupt
context. Exceptions are not handled yet.

Change-Id: Idc5d622991c7257b4577448d8be08ddd1c24c745
2014-02-09 22:29:30 +01:00

51 lines
709 B
Text

OUTPUT_ARCH(mips)
ENTRY(main)
SECTIONS
{
.text 0xa0000000 :
{
relocstart = .;
*(.init.text*)
*(.text*)
}
. = ALIGN(0x1000);
_irqbase = .;
.exception_handlers :
{
. += 0x200;
*(.irq_vector*)
}
.data :
{
*(.rodata*)
*(.data*)
relocend = .;
}
.bss :
{
bssbegin = .;
*(.sbss*)
*(.bss*)
*(COMMON)
*(.scommon*)
bssend = .;
}
.stack (NOLOAD) :
{
stackbegin = .;
. += 0x2000;
stackend = .;
irqstackbegin = .;
. += 0x400;
irqstackend = .;
}
}