]> cvs.zerfleddert.de Git - proxmark3-svn/blame - bootrom/fromflash.c
cleaning up endless copy-paste of trace functionality
[proxmark3-svn] / bootrom / fromflash.c
CommitLineData
6658905f 1#include <proxmark3.h>\r
2\r
e3ae0257 3extern char __bootphase2_src_start__, __bootphase2_start__, __bootphase2_end__;\r
8a6aec16 4void __attribute__((section(".bootphase1"))) CopyBootToRAM(void)\r
6658905f 5{\r
6 int i;\r
7\r
e3ae0257 8 volatile DWORD *s = (volatile DWORD *)&__bootphase2_src_start__;\r
9 volatile DWORD *d = (volatile DWORD *)&__bootphase2_start__;\r
10 unsigned int l = (int)&__bootphase2_end__ - (int)&__bootphase2_start__;\r
6658905f 11\r
e3ae0257 12 for(i = 0; i < l/sizeof(DWORD); i++) *d++ = *s++;\r
6658905f 13}\r
Impressum, Datenschutz