Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/sunxi Align descriptors to 64 bytes instead of ...



details:   https://anonhg.NetBSD.org/src/rev/e003e874346b
branches:  trunk
changeset: 1018937:e003e874346b
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Feb 21 16:07:43 2021 +0000

description:
Align descriptors to 64 bytes instead of CACHE_LINE_SIZE (128) as all known
Allwinner SoCs with this part use 64-byte cache lines.

diffstat:

 sys/arch/arm/sunxi/sunxi_emac.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r dddf5f7de518 -r e003e874346b sys/arch/arm/sunxi/sunxi_emac.h
--- a/sys/arch/arm/sunxi/sunxi_emac.h   Sun Feb 21 16:05:44 2021 +0000
+++ b/sys/arch/arm/sunxi/sunxi_emac.h   Sun Feb 21 16:07:43 2021 +0000
@@ -203,8 +203,8 @@
        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__ */



Home | Main Index | Thread Index | Old Index