]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove the internal CoreCreateProtocolNotifyEvent() in DxeCore, for UefiLib provide...
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 12 Sep 2008 01:12:31 +0000 (01:12 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 12 Sep 2008 01:12:31 +0000 (01:12 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5883 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c
MdeModulePkg/Core/Dxe/FwVol/FwVol.c
MdeModulePkg/Core/Dxe/Library.h
MdeModulePkg/Core/Dxe/Library/Library.c

index 0936fad997793ea15a221bf82bc0df3ad4080abd..b2faff1a867ad6f7ed5f72e4958a135be438040c 100644 (file)
@@ -1140,13 +1140,12 @@ CoreInitializeDispatcher (
   VOID\r
   )\r
 {\r
-  mFwVolEvent = CoreCreateProtocolNotifyEvent (\r
+  mFwVolEvent = EfiCreateProtocolNotifyEvent (\r
                   &gEfiFirmwareVolume2ProtocolGuid,\r
                   TPL_CALLBACK,\r
                   CoreFwVolEventProtocolNotify,\r
                   NULL,\r
-                  &mFwVolEventRegistration,\r
-                  TRUE\r
+                  &mFwVolEventRegistration\r
                   );\r
 }\r
 \r
index f62be8ff43f394508392ebd02a9582774975aef5..c236282d46b7203895d5e415f8c65855f7e7203c 100644 (file)
@@ -511,13 +511,12 @@ FwVolDriverInit (
   IN EFI_SYSTEM_TABLE             *SystemTable\r
   )\r
 {\r
-  gEfiFwVolBlockEvent = CoreCreateProtocolNotifyEvent (\r
+  gEfiFwVolBlockEvent = EfiCreateProtocolNotifyEvent (\r
                           &gEfiFirmwareVolumeBlockProtocolGuid,\r
                           TPL_CALLBACK,\r
                           NotifyFwVolBlock,\r
                           NULL,\r
-                          &gEfiFwVolBlockNotifyReg,\r
-                          TRUE\r
+                          &gEfiFwVolBlockNotifyReg\r
                           );\r
   return EFI_SUCCESS;\r
 }\r
index c68e62d81a77a29a6477a52f90a528be0ca2d754..0d907d834117a325aa471b7cc3d7d1bb9dc8c5fa 100644 (file)
@@ -65,30 +65,4 @@ CoreReleaseLock (
   );\r
 \r
 \r
-/**\r
-  Create a protocol notification event and return it.\r
-\r
-  @param  ProtocolGuid       Protocol to register notification event on.\r
-  @param  NotifyTpl          Maximum TPL to signal the NotifyFunction.\r
-  @param  NotifyFunction     EFI notification routine.\r
-  @param  NotifyContext      Context passed into Event when it is created.\r
-  @param  Registration       Registration key returned from\r
-                             RegisterProtocolNotify().\r
-  @param  SignalFlag         Boolean value to decide whether kick the event after\r
-                             register or not.\r
-\r
-  @return The EFI_EVENT that has been registered to be signaled when a ProtocolGuid\r
-          is added to the system.\r
-\r
-**/\r
-EFI_EVENT\r
-CoreCreateProtocolNotifyEvent (\r
-  IN EFI_GUID             *ProtocolGuid,\r
-  IN EFI_TPL              NotifyTpl,\r
-  IN EFI_EVENT_NOTIFY     NotifyFunction,\r
-  IN VOID                 *NotifyContext,\r
-  OUT VOID                **Registration,\r
-  IN  BOOLEAN             SignalFlag\r
-  );\r
-\r
 #endif\r
index 5ba89fdc21534b03d3a09413327254fbebcec179..19fa2ddcdf776f9af8b0dc45ec100b2275deae65 100644 (file)
@@ -103,66 +103,4 @@ CoreReleaseLock (
 }\r
 \r
 \r
-/**\r
-  Create a protocol notification event and return it.\r
-\r
-  @param  ProtocolGuid       Protocol to register notification event on.\r
-  @param  NotifyTpl          Maximum TPL to signal the NotifyFunction.\r
-  @param  NotifyFunction     EFI notification routine.\r
-  @param  NotifyContext      Context passed into Event when it is created.\r
-  @param  Registration       Registration key returned from\r
-                             RegisterProtocolNotify().\r
-  @param  SignalFlag         Boolean value to decide whether kick the event after\r
-                             register or not.\r
-\r
-  @return The EFI_EVENT that has been registered to be signaled when a ProtocolGuid\r
-          is added to the system.\r
-\r
-**/\r
-EFI_EVENT\r
-CoreCreateProtocolNotifyEvent (\r
-  IN EFI_GUID             *ProtocolGuid,\r
-  IN EFI_TPL              NotifyTpl,\r
-  IN EFI_EVENT_NOTIFY     NotifyFunction,\r
-  IN VOID                 *NotifyContext,\r
-  OUT VOID                **Registration,\r
-  IN  BOOLEAN             SignalFlag\r
-  )\r
-{\r
-  EFI_STATUS              Status;\r
-  EFI_EVENT               Event;\r
-\r
-  //\r
-  // Create the event\r
-  //\r
-  Status = CoreCreateEvent (\r
-            EVT_NOTIFY_SIGNAL,\r
-            NotifyTpl,\r
-            NotifyFunction,\r
-            NotifyContext,\r
-            &Event\r
-            );\r
-  ASSERT_EFI_ERROR (Status);\r
-\r
-  //\r
-  // Register for protocol notifactions on this event\r
-  //\r
-  Status = CoreRegisterProtocolNotify (\r
-             ProtocolGuid,\r
-             Event,\r
-             Registration\r
-             );\r
-  ASSERT_EFI_ERROR (Status);\r
-\r
-  if (SignalFlag) {\r
-    //\r
-    // Kick the event so we will perform an initial pass of\r
-    // current installed drivers\r
-    //\r
-    CoreSignalEvent (Event);\r
-  }\r
-\r
-  return Event;\r
-}\r
-\r
 \r