the current ethernet code is not direct addressing clean, so enable it only

if real addressing mode is available (e.g. this excludes win32 platforms for
now)
This commit is contained in:
gbeauche 2005-03-19 04:31:59 +00:00
parent c044b1d8eb
commit 7fcb230d67

View File

@ -333,6 +333,8 @@ void DoPatchNameRegistry(void)
} }
// Create "ethernet" // Create "ethernet"
// XXX the current ethernet driver is not direct addressing clean
#if REAL_ADDRESSING
SheepRegEntryID ethernet; SheepRegEntryID ethernet;
if (!RegistryCStrEntryCreate(device_tree.addr(), "ethernet", ethernet.addr())) { if (!RegistryCStrEntryCreate(device_tree.addr(), "ethernet", ethernet.addr())) {
RegistryPropertyCreateStr(ethernet.addr(), "AAPL,connector", "ethernet"); RegistryPropertyCreateStr(ethernet.addr(), "AAPL,connector", "ethernet");
@ -343,6 +345,7 @@ void DoPatchNameRegistry(void)
// local-mac-address // local-mac-address
// max-frame-size 2048 // max-frame-size 2048
} }
#endif
} }
D(bug("done.\n")); D(bug("done.\n"));
} }