summaryrefslogtreecommitdiff
path: root/Core/InitList.c
blob: 041dca6d3be486dbf7196d00aeb809487e1f9a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************