[LinuxBIOS] retrieving MAC from romstrap
rmh at aybabtu.com
Wed Sep 26 22:37:50 CEST 2007
I just run through this piece of code in southbridge/nvidia/ck804/ck804_nic.c,
unsigned long mac_pos;
mac_pos = 0xffffffd0; // refer to romstrap.inc and romstrap.lds
mac_l = readl(mac_pos) + nic_index;
mac_h = readl(mac_pos + 4);
and can't understand what is this romstrap and why it retrieves the MAC from
it in runtime. Is this some kind of legacy interface? Wouldn't it be simpler
to just hardcode it during build? E.g. see attached patch.
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1159 bytes
Desc: not available
More information about the coreboot