mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 01:52:39 +03:00
[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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user