diff options
author | Michael Brown | 2005-05-03 13:29:33 +0200 |
---|---|---|
committer | Michael Brown | 2005-05-03 13:29:33 +0200 |
commit | c112f12c5b9b2d883253624c81f6a1c8095966ef (patch) | |
tree | e2a5c9685a30184fc933ac49577d379091801b7f /src/drivers/net/tulip.c | |
parent | Arbitrary alignment is now available. (diff) | |
download | ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.tar.gz ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.tar.xz ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.zip |
Symbol fixups
Diffstat (limited to 'src/drivers/net/tulip.c')
-rw-r--r-- | src/drivers/net/tulip.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/drivers/net/tulip.c b/src/drivers/net/tulip.c index 30df9870..ad075021 100644 --- a/src/drivers/net/tulip.c +++ b/src/drivers/net/tulip.c @@ -400,12 +400,17 @@ static u32 ioaddr; longword divisable */ #define TX_RING_SIZE 2 -static struct tulip_tx_desc tx_ring[TX_RING_SIZE] __attribute__ ((aligned(4))); -static unsigned char txb[BUFLEN] __attribute__ ((aligned(4))); - #define RX_RING_SIZE 4 -static struct tulip_rx_desc rx_ring[RX_RING_SIZE] __attribute__ ((aligned(4))); -static unsigned char rxb[RX_RING_SIZE * BUFLEN] __attribute__ ((aligned(4))); +struct { + struct tulip_tx_desc tx_ring[TX_RING_SIZE]; + unsigned char txb[BUFLEN]; + struct tulip_rx_desc rx_ring[RX_RING_SIZE]; + unsigned char rxb[RX_RING_SIZE * BUFLEN]; +} tulip_buffers __shared __attribute__ ((aligned(4))); +#define tx_ring tulip_buffers.tx_ring +#define txb tulip_buffers.txb +#define rx_ring tulip_buffers.rx_ring +#define rxb tulip_buffers.rxb static struct tulip_private { int cur_rx; |