]> git.zerfleddert.de Git - proxmark3-svn/blame - bootrom/fromflash.c
Clean up line endings, switch everything to LF instead of CRLF
[proxmark3-svn] / bootrom / fromflash.c
CommitLineData
15c4dc5a 1#include <proxmark3.h>
2
3extern char __bootphase2_src_start__, __bootphase2_start__, __bootphase2_end__;
4void __attribute__((section(".bootphase1"))) CopyBootToRAM(void)
5{
6 int i;
7
8 volatile DWORD *s = (volatile DWORD *)&__bootphase2_src_start__;
9 volatile DWORD *d = (volatile DWORD *)&__bootphase2_start__;
10 unsigned int l = (int)&__bootphase2_end__ - (int)&__bootphase2_start__;
11
12 for(i = 0; i < l/sizeof(DWORD); i++) *d++ = *s++;
13}
Impressum, Datenschutz