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/d7f2b5d7099d
branches:  trunk
changeset: 959678:d7f2b5d7099d
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 10d1bd4d3444 -r d7f2b5d7099d 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