Project

General

Profile

Statistics
| Revision:

root / trunk / bootloader / reset_vect.c @ 209

History | View | Annotate | Download (340 Bytes)

1
/** 
2
 * Restore the reset vector to point to the end of ctors. This
3
 * is because we are stripping out the interrupt vector table
4
 * from the bootloader as we don't use it.
5
 */
6
void ResetVector (void) __attribute__((naked))
7
                        __attribute__((section(".reset")));
8
void ResetVector(void) {
9
    asm("rjmp __ctors_end");
10
}