We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d43dd88 commit c8f19f1Copy full SHA for c8f19f1
ports/stm32/mboot/mboot.h
@@ -30,8 +30,9 @@
30
// Use this to tag global static data in RAM that doesn't need to be zeroed on startup
31
#define SECTION_NOZERO_BSS __attribute__((section(".nozero_bss")))
32
33
-#define ELEM_DATA_START (&_estack)
34
-#define ELEM_DATA_MAX (ELEM_DATA_START + 1024)
+#define ELEM_DATA_SIZE (1024)
+#define ELEM_DATA_START (&_estack[0])
35
+#define ELEM_DATA_MAX (&_estack[ELEM_DATA_SIZE])
36
37
enum {
38
ELEM_TYPE_END = 1,
@@ -48,7 +49,7 @@ typedef struct _fsload_bdev_t {
48
49
uint32_t byte_len;
50
} fsload_bdev_t;
51
-extern uint8_t _estack;
52
+extern uint8_t _estack[ELEM_DATA_SIZE];
53
54
uint32_t get_le32(const uint8_t *b);
55
void led_state_all(unsigned int mask);
0 commit comments