Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Use __aligned(8) with naturally-aligned-yet-__pa...
details: https://anonhg.NetBSD.org/src/rev/422477476777
branches: trunk
changeset: 1009550:422477476777
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Apr 26 15:39:04 2020 +0000
description:
Use __aligned(8) with naturally-aligned-yet-__packed msk(4) descriptors.
Allows compiler to generate more efficent struct member accesses.
diffstat:
sys/dev/pci/if_skreg.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 7d10a135f0db -r 422477476777 sys/dev/pci/if_skreg.h
--- a/sys/dev/pci/if_skreg.h Sun Apr 26 14:49:17 2020 +0000
+++ b/sys/dev/pci/if_skreg.h Sun Apr 26 15:39:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_skreg.h,v 1.27 2019/11/15 12:38:09 msaitoh Exp $ */
+/* $NetBSD: if_skreg.h,v 1.28 2020/04/26 15:39:04 jakllsch Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -1701,7 +1701,7 @@
u_int16_t sk_len;
u_int8_t sk_ctl;
u_int8_t sk_opcode;
-} __packed;
+} __packed __aligned(8);
#define SK_Y2_RXOPC_BUFFER 0x40
#define SK_Y2_RXOPC_PACKET 0x41
@@ -1712,7 +1712,7 @@
u_int16_t sk_len;
u_int8_t sk_ctl;
u_int8_t sk_opcode;
-} __packed;
+} __packed __aligned(8);
#define SK_Y2_TXCTL_LASTFRAG 0x80
@@ -1725,7 +1725,7 @@
u_int16_t sk_len;
u_int8_t sk_link;
u_int8_t sk_opcode;
-} __packed;
+} __packed __aligned(8);
#define SK_Y2_STOPC_RXSTAT 0x60
#define SK_Y2_STOPC_TXSTAT 0x68
Home |
Main Index |
Thread Index |
Old Index