summaryrefslogtreecommitdiff
path: root/target/linux/ramips/files
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-15 18:33:40 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-15 18:33:40 +0000
commit0564ef75aae1354edac3caa72c741751c5641a29 (patch)
treea4d117193122b36de0c7be32b499e69b8c85dc47 /target/linux/ramips/files
parenteaae1ec1dea2a461c18e8f7c3434643d31dd2791 (diff)
ramips: raeth: add '__packed __aligned(4)' annotation to dma descritor structures
This helps GCC to generare more efficient code. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30553 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips_eth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips_eth.h b/target/linux/ramips/files/drivers/net/ramips_eth.h
index a74732d841..1d151df687 100644
--- a/target/linux/ramips/files/drivers/net/ramips_eth.h
+++ b/target/linux/ramips/files/drivers/net/ramips_eth.h
@@ -195,7 +195,7 @@ struct ramips_rx_dma {
unsigned int rxd2;
unsigned int rxd3;
unsigned int rxd4;
-};
+} __packed __aligned(4);
#define TX_DMA_PLEN0_MASK ((0x3fff) << 16)
#define TX_DMA_PLEN0(_x) (((_x) & 0x3fff) << 16)
@@ -211,7 +211,7 @@ struct ramips_tx_dma {
unsigned int txd2;
unsigned int txd3;
unsigned int txd4;
-};
+} __packed __aligned(4);
struct raeth_priv
{