X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=drivers%2Fnet%2Ffec_mxc.c;h=107cd6ecc5c3b25a5b173faba25f1e2f76b26b50;hp=210ef02df53dbf9ba332e91c3b428b981807342d;hb=fd37f195cacc068ad4c070dd794643fcb25ef21a;hpb=1d585241264e5bf465e398cde4cc6c4e42c0a27e diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 210ef02df5..107cd6ecc5 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -794,7 +794,7 @@ static int fec_recv(struct eth_device *dev) uint16_t bd_status; uint32_t addr, size, end; int i; - uchar buff[FEC_MAX_PKT_SIZE] __aligned(ARCH_DMA_MINALIGN); + ALLOC_CACHE_ALIGN_BUFFER(uchar, buff, FEC_MAX_PKT_SIZE); /* * Check if any critical events have happened