summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/3c509.c
diff options
context:
space:
mode:
authorMichael Brown2025-06-24 14:17:19 +0200
committerMichael Brown2025-06-24 14:41:51 +0200
commitd3e10ebd354928d56ba660cd2ea14af1663702a2 (patch)
treee9265e1ecdfb1b9bad6453f00d5c04c38a33728f /src/drivers/net/3c509.c
parent[legacy] Rename the global legacy NIC to "legacy_nic" (diff)
downloadipxe-d3e10ebd354928d56ba660cd2ea14af1663702a2.tar.gz
ipxe-d3e10ebd354928d56ba660cd2ea14af1663702a2.tar.xz
ipxe-d3e10ebd354928d56ba660cd2ea14af1663702a2.zip
[legacy] Allocate legacy driver .bss-like segments at probe time
Some legacy drivers use large static allocations for transmit and receive buffers. To avoid bloating the .bss segment, we currently implement these as a single common symbol named "_shared_bss" (which is permissible since only one legacy driver may be active at any one time). Switch to dynamic allocation of these .bss-like segments, to avoid the requirement for using common symbols. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/3c509.c')
-rw-r--r--src/drivers/net/3c509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/3c509.c b/src/drivers/net/3c509.c
index 4326a835c..0f721315d 100644
--- a/src/drivers/net/3c509.c
+++ b/src/drivers/net/3c509.c
@@ -316,7 +316,7 @@ static int t509_probe ( struct t509_device *t509 ) {
DBG ( "Adding 3c509 device %02x (I/O %04x)\n",
t509->tag, t509->ioaddr );
return legacy_probe ( t509, legacy_t509_set_drvdata, &t509->dev,
- legacy_t509_probe, legacy_t509_disable );
+ legacy_t509_probe, legacy_t509_disable, 0 );
}
/**