X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9783989b400be4ed19cbf12defa4d6dbcdcd9fc8..fb26bb5436efe7d07919c6903cf4b0784e134a18:/armsrc/start.c diff --git a/armsrc/start.c b/armsrc/start.c index f1e58ab0..d2e4ed4c 100644 --- a/armsrc/start.c +++ b/armsrc/start.c @@ -9,6 +9,9 @@ // with the linker script. //----------------------------------------------------------------------------- +#ifndef __START_H +#define __START_H + #include "proxmark3.h" #include "apps.h" #include "zlib.h" @@ -18,7 +21,6 @@ static uint8_t *next_free_memory; extern struct common_area common_area; extern char __data_src_start__, __data_start__, __data_end__, __bss_start__, __bss_end__; - static voidpf inflate_malloc(voidpf opaque, uInt items, uInt size) { uint8_t *allocated_memory; @@ -28,11 +30,9 @@ static voidpf inflate_malloc(voidpf opaque, uInt items, uInt size) return allocated_memory; } - static void inflate_free(voidpf opaque, voidpf address) { // nothing to do - } static void uncompress_data_section(void) @@ -60,7 +60,6 @@ static void uncompress_data_section(void) common_area.arg1 = data_section.total_in; } - void __attribute__((section(".startos"))) Vector(void) { /* Stack should have been set up by the bootloader */ @@ -80,6 +79,6 @@ void __attribute__((section(".startos"))) Vector(void) // end = &__data_end__; // while(dst < end) *dst++ = *src++; - AppMain(); } +#endif \ No newline at end of file