File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,18 @@ __section(".heap_mem") static uint8_t __aligned(PLATFORM_DCACHE_ALIGN) heapmem[H
8181#define HEAPMEM_SIZE (256 * 1024)
8282char __aligned (8 ) heapmem [HEAPMEM_SIZE ];
8383
84+ #elif defined(CONFIG_ARM64 )
85+ /* for ARM64 the heap is placed inside the .bss section.
86+ *
87+ * This is because we want to avoid introducing new sections in
88+ * the arm64 linker script. Also, is there really a need to place
89+ * it inside a special section?
90+ *
91+ * i.MX93 is the only ARM64-based platform so defining the heap this way
92+ * for all ARM64-based platforms should be safe.
93+ */
94+ static uint8_t __aligned (PLATFORM_DCACHE_ALIGN ) heapmem [HEAPMEM_SIZE ];
95+
8496#else
8597
8698extern char _end [], _heap_sentry [];
You can’t perform that action at this time.
0 commit comments