From 67e54cdf1ff9c7743d40d65b51bc022a8c38929c Mon Sep 17 00:00:00 2001 From: tinkeros Date: Sun, 11 Dec 2022 20:59:54 -0600 Subject: [PATCH] Fix PCNetMACGet function --- src/Home/Net/Drivers/PCNet.ZC | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 src/Home/Net/Drivers/PCNet.ZC diff --git a/src/Home/Net/Drivers/PCNet.ZC b/src/Home/Net/Drivers/PCNet.ZC old mode 100755 new mode 100644 index 3146dec9..3183321a --- a/src/Home/Net/Drivers/PCNet.ZC +++ b/src/Home/Net/Drivers/PCNet.ZC @@ -211,10 +211,11 @@ U0 PCNetMACGet() APROM accessible at first 16 bytes of PCI IO space. */ I64 i; + U64 eeprom_bytes = InU32(PCNetIOBaseGet) | InU32(PCNetIOBaseGet + 4) << 32; NetLog("PCNET GET MAC: Getting VM MAC."); for (i = 0; i < 6; i++) { - pcnet.mac_address[i] = InU8(PCNetIOBaseGet + i); + pcnet.mac_address[i] = eeprom_bytes.u8[i]; NetLog(" %02X", pcnet.mac_address[i]); } }