]> git.zerfleddert.de Git - proxmark3-svn/blame - bootrom/fromflash.c
Removing windows specific code. Everything now compile and work the same for the...
[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
f7e3ed82 8 volatile uint32_t *s = (volatile uint32_t *)&__bootphase2_src_start__;
9 volatile uint32_t *d = (volatile uint32_t *)&__bootphase2_start__;
15c4dc5a 10 unsigned int l = (int)&__bootphase2_end__ - (int)&__bootphase2_start__;
11
f7e3ed82 12 for(i = 0; i < l/sizeof(uint32_t); i++) *d++ = *s++;
15c4dc5a 13}
Impressum, Datenschutz