STM32 F7 Ethernet: Add logic to align all DMA memory to the D-Cache line size

This commit is contained in:
Gregory Nutt
2015-07-19 16:35:25 -06:00
parent c4d91c8c9f
commit 2ce3c75264
2 changed files with 235 additions and 145 deletions
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -394,9 +394,9 @@ static const struct uart_ops_s g_uart_dma_ops =
/* DMA buffers. DMA buffers must:
*
* 1. Be a multiple of the I-Cache line size. This requirement is assured
* 1. Be a multiple of the D-Cache line size. This requirement is assured
* by the definition of RXDMA buffer size above.
* 2. Be aligned a I-Cache line boundaries, and
* 2. Be aligned a D-Cache line boundaries, and
* 3. Be positioned in DMA-able memory (*NOT* DTCM memory). This must
* be managed by logic in the linker script file.
*