Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/bouyer-socketcan]: src/sys/netcan Align can_frame.data to 8 bytes, per S...
details: https://anonhg.NetBSD.org/src/rev/a7579fd671ef
branches: bouyer-socketcan
changeset: 820806:a7579fd671ef
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sun Jan 15 21:01:34 2017 +0000
description:
Align can_frame.data to 8 bytes, per SocketCAN spec.
diffstat:
sys/netcan/can.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 33f3a9b64328 -r a7579fd671ef sys/netcan/can.h
--- a/sys/netcan/can.h Sun Jan 15 20:29:01 2017 +0000
+++ b/sys/netcan/can.h Sun Jan 15 21:01:34 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: can.h,v 1.1.2.1 2017/01/15 20:27:33 bouyer Exp $ */
+/* $NetBSD: can.h,v 1.1.2.2 2017/01/15 21:01:34 bouyer Exp $ */
/*-
* Copyright (c) 2003, 2017 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
uint8_t __pad;
uint8_t __res0;
uint8_t __res1;
- uint8_t data[CAN_MAX_DLEN];
+ uint8_t data[CAN_MAX_DLEN] __aligned(8);
};
#define CAN_MTU (sizeof(struct can_frame))
Home |
Main Index |
Thread Index |
Old Index