Source-Changes-D archive

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

Re: CVS commit: src/sys/dev/ic



> Module Name:  src
> Committed By: dyoung
> Date:         Thu Aug 27 20:23:32 UTC 2009
> 
> Modified Files:
>       src/sys/dev/ic: tulipreg.h
> 
> Log Message:
> Make descriptors packed w/ 4-byte alignment.

Which compiler explicitly requires it?

@@ -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);

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index