mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
Merge branch 'tinkeros-fix-pcnet-mac'
This commit is contained in:
commit
8b22252b73
1 changed files with 3 additions and 1 deletions
4
src/Home/Net/Drivers/PCNet.ZC
Executable file → Normal file
4
src/Home/Net/Drivers/PCNet.ZC
Executable file → Normal file
|
@ -211,10 +211,12 @@ 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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue