mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
minor
This commit is contained in:
parent
a0e110941a
commit
b0f122528d
1 changed files with 9 additions and 12 deletions
|
@ -51,23 +51,20 @@ void Vector(void) {
|
|||
}
|
||||
common_area.flags.osimage_present = 1;
|
||||
|
||||
#ifdef WITH_NO_COMPRESSION
|
||||
/* Set up data segment: Copy from flash to ram */
|
||||
char *src = &__data_src_start__;
|
||||
char *dst = &__data_start__;
|
||||
char *end = &__data_end__;
|
||||
while (dst < end) *dst++ = *src++;
|
||||
dst = &__bss_start__;
|
||||
end = &__bss_end__;
|
||||
#ifdef WITH_NO_COMPRESSION
|
||||
char *data_src = &__data_src_start__;
|
||||
char *data_dst = &__data_start__;
|
||||
char *data_end = &__data_end__;
|
||||
while (data_dst < data_end) *data_dst++ = *data_src++;
|
||||
#else
|
||||
uncompress_data_section();
|
||||
|
||||
/* Set up (that is: clear) BSS. */
|
||||
char *dst = &__bss_start__;
|
||||
char *end = &__bss_end__;
|
||||
#endif
|
||||
|
||||
while (dst < end) *dst++ = 0;
|
||||
/* Set up (that is: clear) BSS. */
|
||||
char *bss_dst = &__bss_start__;
|
||||
char *bss_end = &__bss_end__;
|
||||
while (bss_dst < bss_end) *bss_dst++ = 0;
|
||||
|
||||
AppMain();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue