mirror of
https://github.com/ipxe/ipxe
synced 2026-01-13 00:48:39 +03:00
[tg3] Fix address truncation bug on 64-bit machines
Signed-off-by: Leendert van Doorn <leendert@paramecium.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
b42e71921f
commit
5c2a959a72
@@ -545,7 +545,7 @@ static int tg3_test_dma(struct tg3 *tp)
|
||||
goto out_nofree;
|
||||
}
|
||||
buf_dma = virt_to_bus(buf);
|
||||
DBGC2(tp->dev, "dma test buffer, virt: %p phys: %#08x\n", buf, buf_dma);
|
||||
DBGC2(tp->dev, "dma test buffer, virt: %p phys: %#016lx\n", buf, buf_dma);
|
||||
|
||||
if (tg3_flag(tp, 57765_PLUS)) {
|
||||
tp->dma_rwctrl = DMA_RWCTRL_DIS_CACHE_ALIGNMENT;
|
||||
|
||||
Reference in New Issue
Block a user