]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/start.c
0466a92fdb28eef430e0d26805f2471a4afb2eee
1 //-----------------------------------------------------------------------------
2 // Just vector to AppMain(). This is in its own file so that I can place it
3 // with the linker script.
4 // Jonathan Westhues, Mar 2006
5 //-----------------------------------------------------------------------------
9 extern char __data_start__
, __data_src_start__
, __data_end__
, __bss_start__
, __bss_end__
;
10 void __attribute__((section(".startos"))) Vector(void)
12 /* Stack should have been set up by the bootloader */
13 char *src
, *dst
, *end
;
15 /* Set up (that is: clear) BSS. */
18 while(dst
< end
) *dst
++ = 0;
20 /* Set up data segment: Copy from flash to ram */
21 src
= &__data_src_start__
;
22 dst
= &__data_start__
;
24 while(dst
< end
) *dst
++ = *src
++;