Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Make descriptors packed w/ 4-byte alignment.



details:   https://anonhg.NetBSD.org/src/rev/8460047520d8
branches:  trunk
changeset: 747024:8460047520d8
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Aug 27 20:23:32 2009 +0000

description:
Make descriptors packed w/ 4-byte alignment.

diffstat:

 sys/dev/ic/tulipreg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fe01c67ff6ba -r 8460047520d8 sys/dev/ic/tulipreg.h
--- a/sys/dev/ic/tulipreg.h     Thu Aug 27 19:40:06 2009 +0000
+++ b/sys/dev/ic/tulipreg.h     Thu Aug 27 20:23:32 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tulipreg.h,v 1.34 2008/04/28 20:23:51 martin Exp $     */
+/*     $NetBSD: tulipreg.h,v 1.35 2009/08/27 20:23:32 dyoung Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -158,7 +158,7 @@
        volatile u_int32_t td_ctl;        /* Control and Byte Counts */
        volatile u_int32_t td_bufaddr1; /* Buffer Address 1 */
        volatile u_int32_t td_bufaddr2; /* Buffer Address 2 */
-};
+} __packed __aligned(4);
 
 /*
  * Descriptor Status bits common to transmit and receive.



Home | Main Index | Thread Index | Old Index