Depex - Dependency Expresion.\r
SOR - Schedule On Request - Don't schedule if this bit is set.\r
\r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
**/\r
VOID\r
EFIAPI\r
-EmptyFuntion (\r
+CoreEmptyCallbackFunction (\r
IN EFI_EVENT Event,\r
IN VOID *Context\r
)\r
Status = CoreCreateEventEx (\r
EVT_NOTIFY_SIGNAL,\r
TPL_NOTIFY,\r
- EmptyFuntion,\r
+ CoreEmptyCallbackFunction,\r
NULL,\r
&gEfiEventDxeDispatchGuid,\r
&DxeDispatchEvent\r
#include <Guid/EventLegacyBios.h>\r
#include <Guid/EventGroup.h>\r
#include <Guid/LoadModuleAtFixedAddress.h>\r
+#include <Guid/IdleLoopEvent.h>\r
\r
#include <Library/DxeCoreEntryPoint.h>\r
#include <Library/DebugLib.h>\r
IN EFI_LOCK *Lock\r
);\r
\r
+\r
+/**\r
+ An empty function to pass error checking of CreateEventEx ().\r
+\r
+ @param Event Event whose notification function is being invoked.\r
+ @param Context Pointer to the notification function's context,\r
+ which is implementation-dependent.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+CoreEmptyCallbackFunction (\r
+ IN EFI_EVENT Event,\r
+ IN VOID *Context\r
+ );\r
+\r
#endif\r
gEfiMemoryTypeInformationGuid ## CONSUMES ## GUID\r
gEfiEventDxeDispatchGuid ## CONSUMES ## GUID\r
gLoadFixedAddressConfigurationTableGuid ## SOMETIMES_CONSUMES\r
- \r
+ gIdleLoopEventGuid ## CONSUMES ## GUID\r
\r
[Protocols]\r
gEfiStatusCodeRuntimeProtocolGuid ## SOMETIMES_CONSUMES\r
/** @file\r
UEFI Event support functions implemented in this file.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
EVT_TIMER | EVT_NOTIFY_WAIT,\r
};\r
\r
+///\r
+/// gIdleLoopEvent - Event which is signalled when the core is idle\r
+///\r
+EFI_EVENT gIdleLoopEvent = NULL;\r
+\r
\r
/**\r
Enter critical section by acquiring the lock on gEventQueueLock.\r
\r
CoreInitializeTimer ();\r
\r
+ CoreCreateEventEx (\r
+ EVT_NOTIFY_SIGNAL,\r
+ TPL_NOTIFY,\r
+ CoreEmptyCallbackFunction,\r
+ NULL,\r
+ &gIdleLoopEventGuid,\r
+ &gIdleLoopEvent\r
+ );\r
+\r
return EFI_SUCCESS;\r
}\r
\r
}\r
\r
//\r
- // This was the location of the Idle loop callback in EFI 1.x reference\r
- // code. We don't have that concept in this base at this point.\r
+ // Signal the Idle event\r
//\r
+ CoreSignalEvent (gIdleLoopEvent);\r
}\r
}\r
\r
\r
return Status;\r
}\r
+\r
--- /dev/null
+/** @file\r
+ GUID is the name of events used with CreateEventEx in order to be notified\r
+ when the DXE Core is idle.\r
+\r
+ Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __IDLE_LOOP_EVENT_GUID_H__\r
+#define __IDLE_LOOP_EVENT_GUID_H__\r
+\r
+#define IDLE_LOOP_EVENT_GUID \\r
+ { 0x3c8d294c, 0x5fc3, 0x4451, { 0xbb, 0x31, 0xc4, 0xc0, 0x32, 0x29, 0x5e, 0x6c } }\r
+\r
+extern EFI_GUID gIdleLoopEventGuid;\r
+\r
+#endif\r
# Include/Guid/DebugMask.h \r
gEfiGenericVariableGuid = { 0x59d1c24f, 0x50f1, 0x401a, {0xb1, 0x01, 0xf3, 0x3e, 0x0d, 0xae, 0xd4, 0x43} }\r
\r
+ ## Event for the DXE Core to signal idle events\r
+ # Include/Guid/EventIdle.h\r
+ gIdleLoopEventGuid = { 0x3c8d294c, 0x5fc3, 0x4451, { 0xbb, 0x31, 0xc4, 0xc0, 0x32, 0x29, 0x5e, 0x6c } }\r
+\r
[Protocols]\r
## Load File protocol provides capability to load and unload EFI image into memory and execute it.\r
# Include/Protocol/LoadPe32Image.h\r