| 1 | #include <proxmark3.h>\r |
| 2 | \r |
| 3 | void __attribute__((section(".bootphase1"))) CopyBootToRAM(void)\r |
| 4 | {\r |
| 5 | int i;\r |
| 6 | \r |
| 7 | volatile DWORD *s = (volatile DWORD *)0x200;\r |
| 8 | volatile DWORD *d = (volatile DWORD *)0x200000;\r |
| 9 | \r |
| 10 | for(i = 0; i < 1024; i++) *d++ = *s++;\r |
| 11 | }\r |