Retire NetLibQueueDpc() and NetLibDispatchDpc() and use QueueDpc() and DispatchDpc() from the DpcLib instead.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8897 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -56,11 +56,10 @@
|
||||
DebugLib
|
||||
IpIoLib
|
||||
NetLib
|
||||
|
||||
DpcLib
|
||||
|
||||
[Protocols]
|
||||
gEfiIp4ProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||
gEfiUdp4ServiceBindingProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||
gEfiIp4ServiceBindingProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||
gEfiUdp4ProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||
|
||||
|
@ -1007,7 +1007,7 @@ Udp4DgramSent (
|
||||
//
|
||||
Token->Status = Status;
|
||||
gBS->SignalEvent (Token->Event);
|
||||
NetLibDispatchDpc ();
|
||||
DispatchDpc ();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1054,7 +1054,7 @@ Udp4DgramRcvd (
|
||||
// Dispatch the DPC queued by the NotifyFunction of the rx token's events
|
||||
// which are signaled with received data.
|
||||
//
|
||||
NetLibDispatchDpc ();
|
||||
DispatchDpc ();
|
||||
}
|
||||
|
||||
|
||||
|
@ -30,6 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/TimerLib.h>
|
||||
#include <Library/DpcLib.h>
|
||||
|
||||
#include "Udp4Driver.h"
|
||||
|
||||
|
@ -783,7 +783,7 @@ Udp4Receive (
|
||||
//
|
||||
// Dispatch the DPC queued by the NotifyFunction of Token->Event.
|
||||
//
|
||||
NetLibDispatchDpc ();
|
||||
DispatchDpc ();
|
||||
|
||||
ON_EXIT:
|
||||
|
||||
@ -856,7 +856,7 @@ Udp4Cancel (
|
||||
//
|
||||
// Dispatch the DPC queued by the NotifyFunction of the cancelled token's events.
|
||||
//
|
||||
NetLibDispatchDpc ();
|
||||
DispatchDpc ();
|
||||
|
||||
gBS->RestoreTPL (OldTpl);
|
||||
|
||||
|
Reference in New Issue
Block a user