summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/mtnic.c
diff options
context:
space:
mode:
authorMichael Brown2008-11-19 20:33:05 +0100
committerMichael Brown2008-11-19 20:33:05 +0100
commit0ebbbb95fa03622423154a3e56251dd58832654d (patch)
tree3bb6fa8df8158cf546a3fe42364cfd3d0b4ef831 /src/drivers/net/mtnic.c
parent[build] Explicitly link efilink against -liberty (diff)
downloadipxe-0ebbbb95fa03622423154a3e56251dd58832654d.tar.gz
ipxe-0ebbbb95fa03622423154a3e56251dd58832654d.tar.xz
ipxe-0ebbbb95fa03622423154a3e56251dd58832654d.zip
[x86_64] Fix assorted 64-bit compilation errors and warnings
Remove various 32-bit assumptions scattered throughout the codebase. The code is still not necessarily 64-bit clean, but will at least compile.
Diffstat (limited to 'src/drivers/net/mtnic.c')
-rwxr-xr-xsrc/drivers/net/mtnic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/net/mtnic.c b/src/drivers/net/mtnic.c
index 240caf60..d06c24ed 100755
--- a/src/drivers/net/mtnic.c
+++ b/src/drivers/net/mtnic.c
@@ -37,6 +37,7 @@
#include <gpxe/umalloc.h>
#include <byteswap.h>
#include <unistd.h>
+#include <gpxe/io.h>
#include <gpxe/pci.h>
#include <gpxe/ethernet.h>
#include <gpxe/netdevice.h>
@@ -1618,8 +1619,8 @@ mtnic_disable(struct pci_device *pci)
free(priv->cmd.buf);
iounmap(priv->hcr);
- ufree((u32)priv->fw.fw_pages.buf);
- ufree((u32)priv->fw.extra_pages.buf);
+ ufree((intptr_t)priv->fw.fw_pages.buf);
+ ufree((intptr_t)priv->fw.extra_pages.buf);
free(priv->eq.buf);
iounmap(priv->eq_db);
priv->state = CARD_DOWN;