X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/72c4af087f2950bb445ae0c9c439724efe9a0d0e..15c4dc5ace24e6081d1597b011148f156cdd599e:/bootrom/fromflash.c diff --git a/bootrom/fromflash.c b/bootrom/fromflash.c index 6b41c408..80403e5f 100644 --- a/bootrom/fromflash.c +++ b/bootrom/fromflash.c @@ -1,13 +1,13 @@ -#include - -extern char __bootphase2_src_start__, __bootphase2_start__, __bootphase2_end__; -void __attribute__((section(".bootphase1"))) CopyBootToRAM(void) -{ - int i; - - volatile DWORD *s = (volatile DWORD *)&__bootphase2_src_start__; - volatile DWORD *d = (volatile DWORD *)&__bootphase2_start__; - unsigned int l = (int)&__bootphase2_end__ - (int)&__bootphase2_start__; - - for(i = 0; i < l/sizeof(DWORD); i++) *d++ = *s++; -} +#include + +extern char __bootphase2_src_start__, __bootphase2_start__, __bootphase2_end__; +void __attribute__((section(".bootphase1"))) CopyBootToRAM(void) +{ + int i; + + volatile DWORD *s = (volatile DWORD *)&__bootphase2_src_start__; + volatile DWORD *d = (volatile DWORD *)&__bootphase2_start__; + unsigned int l = (int)&__bootphase2_end__ - (int)&__bootphase2_start__; + + for(i = 0; i < l/sizeof(DWORD); i++) *d++ = *s++; +}