mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 15:26:43 +00:00
Fix PCNetMACGet function
This commit is contained in:
parent
1d778f6322
commit
67e54cdf1f
1 changed files with 2 additions and 1 deletions
3
src/Home/Net/Drivers/PCNet.ZC
Executable file → Normal file
3
src/Home/Net/Drivers/PCNet.ZC
Executable file → Normal file
|
@ -211,10 +211,11 @@ 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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue