// with the linker script.
//-----------------------------------------------------------------------------
+#ifndef __START_H
+#define __START_H
+
#include "proxmark3.h"
#include "apps.h"
#include "zlib.h"
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;
return allocated_memory;
}
-
static void inflate_free(voidpf opaque, voidpf address)
{
// nothing to do
-
}
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 */
// end = &__data_end__;
// while(dst < end) *dst++ = *src++;
-
AppMain();
}
+#endif
\ No newline at end of file