summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/mtd80x.c
diff options
context:
space:
mode:
authorMichael Brown2005-05-03 13:29:33 +0200
committerMichael Brown2005-05-03 13:29:33 +0200
commitc112f12c5b9b2d883253624c81f6a1c8095966ef (patch)
treee2a5c9685a30184fc933ac49577d379091801b7f /src/drivers/net/mtd80x.c
parentArbitrary alignment is now available. (diff)
downloadipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.tar.gz
ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.tar.xz
ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.zip
Symbol fixups
Diffstat (limited to 'src/drivers/net/mtd80x.c')
-rw-r--r--src/drivers/net/mtd80x.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/drivers/net/mtd80x.c b/src/drivers/net/mtd80x.c
index 72e4662ee..3d974abc3 100644
--- a/src/drivers/net/mtd80x.c
+++ b/src/drivers/net/mtd80x.c
@@ -368,16 +368,14 @@ enum tx_desc_control_bits {
#define LinkIsUp2 0x00040000
/* Create a static buffer of size PKT_BUF_SZ for each
-TX Descriptor. All descriptors point to a
+RX and TX Descriptor. All descriptors point to a
part of this buffer */
-static u8 txb[PKT_BUF_SZ * TX_RING_SIZE]
-__attribute__ ((aligned(8)));
-
-/* Create a static buffer of size PKT_BUF_SZ for each
-RX Descriptor All descriptors point to a
-part of this buffer */
-static u8 rxb[PKT_BUF_SZ * RX_RING_SIZE]
-__attribute__ ((aligned(8)));
+struct {
+ u8 txb[PKT_BUF_SZ * TX_RING_SIZE] __attribute__ ((aligned(8)));
+ u8 rxb[PKT_BUF_SZ * RX_RING_SIZE] __attribute__ ((aligned(8)));
+} mtd80x_bufs __shared;
+#define txb mtd80x_bufs.txb
+#define rxb mtd80x_bufs.rxb
/* The Tulip Rx and Tx buffer descriptors. */
struct mtd_desc