Replace all __attribute__((section(x)) with locate_data(x)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-07-27 18:30:12 +08:00
committed by Gustavo Henrique Nihei
parent b3f9ffbe72
commit 007adc7736
74 changed files with 108 additions and 108 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ This directory contains the NuttX memory management logic. This include:
heap in memory (logic in the linker script would assign the section
.dmaheap to the DMA memory.
FAR uint32_t g_dmaheap[DMAHEAP_SIZE] __attribute__((section(.dmaheap)));
FAR uint32_t g_dmaheap[DMAHEAP_SIZE] locate_data(.dmaheap);
The heap is created by calling gran_initialize. Here the granule size
is set to 64 bytes and the alignment to 16 bytes:
+1 -1
View File
@@ -55,7 +55,7 @@
* attribute to position a DMA heap in memory (logic in the linker script
* would assign the section .dmaheap to the DMA memory.
*
* FAR uint32_t g_dmaheap[DMAHEAP_SIZE] __attribute__((section(.dmaheap)));
* FAR uint32_t g_dmaheap[DMAHEAP_SIZE] locate_data(.dmaheap);
*
* The heap is created by calling gran_initialize(). Here the granule size
* is set to 64 bytes (2**6) and the alignment to 16 bytes (2**4):