forked from apache/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stm32h7:SDMMC fix unaligned access for buffers not on 32 bit boundaries
The IDMA needs to have 32 bit word alignment, in fact it will AND off the lower 2 bits of the value stored in IDMABASE0R. This bug was masked by CONFIG_ARMV7M_DCACHE causing proper word alignment and also FAT_DMAMEMORY being aligned. This commit extends the unaligned logic (used for dcache) to take into account the need for a buffer copy when the buffer is ot 32 bit word. It leverages the fact that when CONFIG_ARMV7M_DCACHE is not defined the up_xxxxx_dcache are nops.
- Loading branch information
1 parent
dd2ffbc
commit a1ebd49
Showing
1 changed file
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters