mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
stm32h7: Fixes bug in stm32_sdmmc.c where DCACHE guards were blocking a needed variable.
This commit is contained in:
committed by
Xiang Xiao
parent
068e71d0c6
commit
3a10f88bdf
@@ -3034,9 +3034,7 @@ static int stm32_registercallback(FAR struct sdio_dev_s *dev,
|
|||||||
static int stm32_dmapreflight(FAR struct sdio_dev_s *dev,
|
static int stm32_dmapreflight(FAR struct sdio_dev_s *dev,
|
||||||
FAR const uint8_t *buffer, size_t buflen)
|
FAR const uint8_t *buffer, size_t buflen)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_ARMV7M_DCACHE) && !defined(CONFIG_ARMV7M_DCACHE_WRITETHROUGH)
|
|
||||||
struct stm32_dev_s *priv = (struct stm32_dev_s *)dev;
|
struct stm32_dev_s *priv = (struct stm32_dev_s *)dev;
|
||||||
#endif
|
|
||||||
DEBUGASSERT(priv != NULL && buffer != NULL && buflen > 0);
|
DEBUGASSERT(priv != NULL && buffer != NULL && buflen > 0);
|
||||||
|
|
||||||
/* IDMA must be possible to the buffer */
|
/* IDMA must be possible to the buffer */
|
||||||
|
|||||||
Reference in New Issue
Block a user