X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/cc7580be7ad9f51968aa75174071341dad2d4f6a..86d319551864035038ea0b9355b6fa1815398bfd:/bootrom/fromflash.c?ds=sidebyside diff --git a/bootrom/fromflash.c b/bootrom/fromflash.c deleted file mode 100644 index 81501fd0..00000000 --- a/bootrom/fromflash.c +++ /dev/null @@ -1,21 +0,0 @@ -//----------------------------------------------------------------------------- -// This code is licensed to you under the terms of the GNU GPL, version 2 or, -// at your option, any later version. See the LICENSE.txt file for the text of -// the license. -//----------------------------------------------------------------------------- -// Helper function for launching the bootloader from FLASH -//----------------------------------------------------------------------------- - -#include - -extern char __bootphase2_src_start__, __bootphase2_start__, __bootphase2_end__; -void __attribute__((section(".bootphase1"))) CopyBootToRAM(void) -{ - int i; - - volatile uint32_t *s = (volatile uint32_t *)&__bootphase2_src_start__; - volatile uint32_t *d = (volatile uint32_t *)&__bootphase2_start__; - unsigned int l = (int)&__bootphase2_end__ - (int)&__bootphase2_start__; - - for(i = 0; i < l/sizeof(uint32_t); i++) *d++ = *s++; -}