Merge branch 'tinkeros-fix-pcnet-mac'

This commit is contained in:
TomAwezome 2022-12-13 03:26:44 -05:00
commit 8b22252b73

4
src/Home/Net/Drivers/PCNet.ZC Executable file → Normal file
View file

@ -211,10 +211,12 @@ U0 PCNetMACGet()
APROM accessible at first 16 bytes of PCI IO space. */ APROM accessible at first 16 bytes of PCI IO space. */
I64 i; I64 i;
U64 eeprom_bytes = InU32(PCNetIOBaseGet) | InU32(PCNetIOBaseGet + 4) << 32;
NetLog("PCNET GET MAC: Getting VM MAC."); NetLog("PCNET GET MAC: Getting VM MAC.");
for (i = 0; i < 6; i++) 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]); NetLog(" %02X", pcnet.mac_address[i]);
} }
} }