projects
/
openwrt
/
staging
/
aparcar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c95385
)
ramips: raeth: add '__packed __aligned(4)' annotation to dma descritor structures
author
Gabor Juhos
<juhosg@openwrt.org>
Wed, 15 Feb 2012 18:33:40 +0000
(18:33 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Wed, 15 Feb 2012 18:33:40 +0000
(18:33 +0000)
This helps GCC to generare more efficient code.
SVN-Revision: 30553
target/linux/ramips/files/drivers/net/ramips_eth.h
patch
|
blob
|
history
diff --git
a/target/linux/ramips/files/drivers/net/ramips_eth.h
b/target/linux/ramips/files/drivers/net/ramips_eth.h
index a74732d841c3cc2d84ada483ea7b49b2e6cfa1f0..1d151df687aee86af9591fa9ea8c293cb663d70e 100644
(file)
--- 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
{