\r
// Write the current configuration to the register\r
MmioWrite32 (LAN9118_PMT_CTRL, PmConf);\r
- gBS->Stall (LAN9118_STALL);\r
- gBS->Stall (LAN9118_STALL);\r
+ MemoryFence();\r
\r
// Configure GPIO and HW\r
Status = ConfigureHardware (HW_CONF_USE_LEDS, Snp);\r
\r
// Write the current configuration to the register\r
MmioWrite32 (LAN9118_PMT_CTRL, PmConf);\r
- gBS->Stall (LAN9118_STALL);\r
+ MemoryFence();\r
\r
// Reactivate the LEDs\r
Status = ConfigureHardware (HW_CONF_USE_LEDS, Snp);\r
HwConf |= HW_CFG_TX_FIFO_SIZE(gTxBuffer); // assign size chosen in SnpInitialize\r
\r
MmioWrite32 (LAN9118_HW_CFG, HwConf); // Write the conf\r
- gBS->Stall (LAN9118_STALL);\r
+ MemoryFence();\r
}\r
\r
// Enable the receiver and transmitter and clear their contents\r
// Write the options to the MAC_CSR\r
//\r
IndirectMACWrite32 (INDIRECT_MAC_INDEX_CR, MacCSRValue);\r
- gBS->Stall (LAN9118_STALL);\r
+ MemoryFence();\r
\r
//\r
// If we have to retrieve something, start packet reception.\r