summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Dxe/DxeMain.h
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2012-04-26 03:32:53 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2012-04-26 03:32:53 +0000
commit670d4d88ac2fdddf7d99d276610b194ce03effee (patch)
treee827d538a9e81b713912337b72b67d28c8bcf70d /MdeModulePkg/Core/Dxe/DxeMain.h
parent8d3000031dfc8b1d529e97d4471782bf636a84bf (diff)
downloadedk2-670d4d88ac2fdddf7d99d276610b194ce03effee.tar.gz
edk2-670d4d88ac2fdddf7d99d276610b194ce03effee.tar.bz2
edk2-670d4d88ac2fdddf7d99d276610b194ce03effee.zip
Return EFI_INVALID_PARAMETER when Type has either EVT_NOTIFY_SIGNAL or EVT_NOTIFY_WAIT set and NotifyTpl is not a supported TPL level.
Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Chao Zhang <chao.b.zhang@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13222 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/DxeMain.h')
-rw-r--r--MdeModulePkg/Core/Dxe/DxeMain.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/Dxe/DxeMain.h b/MdeModulePkg/Core/Dxe/DxeMain.h
index 48a57df650..2a8161554a 100644
--- a/MdeModulePkg/Core/Dxe/DxeMain.h
+++ b/MdeModulePkg/Core/Dxe/DxeMain.h
@@ -1409,7 +1409,7 @@ CoreExit (
/**
- Creates a general-purpose event structure.
+ Creates an event.
@param Type The type of event to create and its mode and
attributes
@@ -1439,7 +1439,7 @@ CoreCreateEvent (
/**
- Creates a general-purpose event structure
+ Creates an event in a group.
@param Type The type of event to create and its mode and
attributes
@@ -1469,7 +1469,36 @@ CoreCreateEventEx (
OUT EFI_EVENT *Event
);
+/**
+ Creates a general-purpose event structure
+
+ @param Type The type of event to create and its mode and
+ attributes
+ @param NotifyTpl The task priority level of event notifications
+ @param NotifyFunction Pointer to the events notification function
+ @param NotifyContext Pointer to the notification functions context;
+ corresponds to parameter "Context" in the
+ notification function
+ @param EventGroup GUID for EventGroup if NULL act the same as
+ gBS->CreateEvent().
+ @param Event Pointer to the newly created event if the call
+ succeeds; undefined otherwise
+ @retval EFI_SUCCESS The event structure was created
+ @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value
+ @retval EFI_OUT_OF_RESOURCES The event could not be allocated
+
+**/
+EFI_STATUS
+EFIAPI
+CoreCreateEventInternal (
+ IN UINT32 Type,
+ IN EFI_TPL NotifyTpl,
+ IN EFI_EVENT_NOTIFY NotifyFunction, OPTIONAL
+ IN CONST VOID *NotifyContext, OPTIONAL
+ IN CONST EFI_GUID *EventGroup, OPTIONAL
+ OUT EFI_EVENT *Event
+ );
/**
Sets the type of timer and the trigger time for a timer event.