diff options
| author | dyoung <dyoung@NetBSD.org> | 2007-01-06 06:09:03 +0000 |
|---|---|---|
| committer | dyoung <dyoung@NetBSD.org> | 2007-01-06 06:09:03 +0000 |
| commit | 6439fa375f8dbff88686db6d5e9c32d16601106e (patch) | |
| tree | d3dccefcabc7af3e5f6be86b0cb0dcdd30584851 /sys/dev | |
| parent | d7436b96b1a9507bb7bbf0904bfd287081ec5dab (diff) | |
Add a hint to the compiler that rx/tx descriptors deserve 4-byte
alignment. Helps GCC produce better code on ARM.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/rtwreg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rtwreg.h b/sys/dev/ic/rtwreg.h index 42d00c893f4..8641f04dc60 100644 --- a/sys/dev/ic/rtwreg.h +++ b/sys/dev/ic/rtwreg.h @@ -1,4 +1,4 @@ -/* $NetBSD: rtwreg.h,v 1.21 2006/11/26 17:31:32 dyoung Exp $ */ +/* $NetBSD: rtwreg.h,v 1.22 2007/01/06 06:09:03 dyoung Exp $ */ /*- * Copyright (c) 2004, 2005 David Young. All rights reserved. * @@ -840,7 +840,7 @@ struct rtw_txdesc { volatile uint32_t td_len; volatile uint32_t td_next; volatile uint32_t td_rsvd[3]; -}; +} __attribute__((__packed__, __aligned__(4))); #define td_stat td_ctl0 @@ -901,7 +901,7 @@ struct rtw_rxdesc { volatile uint32_t rd_rsvd0; volatile uint32_t rd_buf; volatile uint32_t rd_rsvd1; -}; +} __attribute__((__packed__, __aligned__(4))); #define rd_stat rd_ctl #define rd_rssi rd_rsvd0 |
