summaryrefslogtreecommitdiff
path: root/Core/InitList.c
diff options
context:
space:
mode:
authorraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
committerraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
commitb7c51c9cf4864df6aabb99a1ae843becd577237c (patch)
treeeebe9b0d0ca03062955223097e57da84dd618b9a /Core/InitList.c
downloadzprj-master.tar.xz
init. 1AQQW051HEADmaster
Diffstat (limited to 'Core/InitList.c')
-rw-r--r--Core/InitList.c86
1 files changed, 86 insertions, 0 deletions
diff --git a/Core/InitList.c b/Core/InitList.c
new file mode 100644
index 0000000..041dca6
--- /dev/null
+++ b/Core/InitList.c
@@ -0,0 +1,86 @@
+//**********************************************************************
+//**********************************************************************
+//** **
+//** (C)Copyright 1985-2005, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 6145-F Northbelt Pkwy, Norcross, GA 30071 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//**********************************************************************
+//**********************************************************************
+
+//**********************************************************************
+// $Header: /Alaska/BIN/Core/InitList.c 3 6/16/05 10:42a Felixp $
+//
+// $Revision: 3 $
+//
+// $Date: 6/16/05 10:42a $
+//**********************************************************************
+// Revision History
+// ----------------
+// $Log: /Alaska/BIN/Core/InitList.c $
+//
+// 3 6/16/05 10:42a Felixp
+// 1. Tokens.c added. It has variables representing SDL tokens.
+// 2. InitList.c extended to support 2 init lists
+//
+// 2 3/04/05 12:38p Mandal
+//
+// 1 1/28/05 12:43p Felixp
+//
+// 2 1/18/05 3:21p Felixp
+// PrintDebugMessage renamed to Trace
+//
+// 1 12/23/04 9:41a Felixp
+//
+// 1 7/12/04 6:31p Felixp
+//
+//**********************************************************************
+//<AMI_FHDR_START>
+//
+// Name: InitList.c
+//
+// Description:
+//
+//<AMI_FHDR_END>
+//**********************************************************************
+#include <efi.h>
+typedef EFI_STATUS (INIT_FUNCTION)(IN VOID* ImageHandle, IN VOID *SystemTable);
+//First init function
+#ifdef INIT_LIST
+extern INIT_FUNCTION INIT_LIST EndOfInitList;
+INIT_FUNCTION* InitList[] = {INIT_LIST NULL};
+
+VOID InitParts(IN VOID* ImageHandle, IN VOID *SystemTable)
+{
+ UINTN i;
+ for(i=0; InitList[i]; i++) InitList[i](ImageHandle,SystemTable);
+}
+#endif
+
+//Second init function
+#ifdef INIT_LIST2
+extern INIT_FUNCTION INIT_LIST2 EndOfInitList;
+INIT_FUNCTION* InitList2[] = {INIT_LIST2 NULL};
+
+VOID InitParts2(IN VOID* ImageHandle, IN VOID *SystemTable)
+{
+ UINTN i;
+ for(i=0; InitList2[i]; i++) InitList2[i](ImageHandle,SystemTable);
+}
+#endif
+//**********************************************************************
+//** **
+//** (C)Copyright 1985-2005, American Megatrends, Inc. **
+//** **
+//** All Rights Reserved. **
+//** **
+//** 6145-F Northbelt Pkwy, Norcross, GA 30071 **
+//** **
+//** Phone: (770)-246-8600 **
+//** **
+//**********************************************************************
+//**********************************************************************