Align descriptors to 64 bytes instead of CACHE_LINE_SIZE (128) as all known
Allwinner SoCs with this part use 64-byte cache lines.
This commit is contained in:
parent
905a01e770
commit
4d6fdc916e
|
@ -203,8 +203,8 @@ struct sunxi_emac_desc {
|
|||
uint32_t addr;
|
||||
|
||||
uint32_t next;
|
||||
} __packed __aligned(CACHE_LINE_SIZE);
|
||||
} __packed __aligned(64);
|
||||
|
||||
__CTASSERT(sizeof(struct sunxi_emac_desc) == CACHE_LINE_SIZE);
|
||||
__CTASSERT(sizeof(struct sunxi_emac_desc) == 64);
|
||||
|
||||
#endif /* !__SUNXI_EMAC_H__ */
|
||||
|
|
Loading…
Reference in New Issue