7552542288
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
51 lines
709 B
Text
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 = .;
|
|
}
|
|
|
|
}
|