mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
cleaning some code
This commit is contained in:
parent
ef6b775f9f
commit
09548ecf51
1 changed files with 2 additions and 10 deletions
|
@ -39,22 +39,14 @@ static void uncompress_data_section(void) {
|
||||||
void __attribute__((section(".startos"))) Vector(void);
|
void __attribute__((section(".startos"))) Vector(void);
|
||||||
void Vector(void) {
|
void Vector(void) {
|
||||||
/* Stack should have been set up by the bootloader */
|
/* Stack should have been set up by the bootloader */
|
||||||
// char *src;
|
|
||||||
char *dst, *end;
|
|
||||||
|
|
||||||
uncompress_data_section();
|
uncompress_data_section();
|
||||||
|
|
||||||
/* Set up (that is: clear) BSS. */
|
/* Set up (that is: clear) BSS. */
|
||||||
dst = &__bss_start__;
|
char *dst = &__bss_start__;
|
||||||
end = &__bss_end__;
|
char *end = &__bss_end__;
|
||||||
while (dst < end) *dst++ = 0;
|
while (dst < end) *dst++ = 0;
|
||||||
|
|
||||||
// Set up data segment: Copy from flash to ram
|
|
||||||
// src = &__data_src_start__;
|
|
||||||
// dst = &__data_start__;
|
|
||||||
// end = &__data_end__;
|
|
||||||
// while(dst < end) *dst++ = *src++;
|
|
||||||
|
|
||||||
AppMain();
|
AppMain();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue