1) Initialize gBS, gST, gImageHandle in UefiBootServicesTableLib.c to NULL
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Apr 2007 06:36:47 +0000 (06:36 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 6 Apr 2007 06:36:47 +0000 (06:36 +0000)
commitabb234751e4fbe58afc5e7c7e203db2a93aac0f8
tree4530cb4337a406438d2eeeab28e29399ec2d6a25
parent18fda0cec0c1bc6b95e15c34dc355457d9a4437a
1) Initialize gBS, gST, gImageHandle in UefiBootServicesTableLib.c to NULL
2) Add DxeCore infix to the module local variable gBS, gST, gRT, gDS in DxeMain.c. This is to solve the name conflict with UefiBootServicesTableLib which is defined in MDE Library Spec.
3) Add in check for gBS and gST in UefiDebugLibConOut/DebugLib.c and UefiDebugLibStdErr/DebugLib.c and MdePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c. If they are not initialized, the API will just return with a error message.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2546 6f19259b-4bc3-4df7-8a09-765794883524
EdkModulePkg/Core/Dxe/DxeMain.h
EdkModulePkg/Core/Dxe/DxeMain/DxeMain.c
EdkModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c
EdkModulePkg/Core/Dxe/Hand/handle.c
EdkModulePkg/Core/Dxe/Image/Image.c
EdkModulePkg/Core/Dxe/Misc/DebugImageInfo.c
EdkModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c
MdePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c
MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.c
MdePkg/Library/UefiDebugLibConOut/DebugLib.c
MdePkg/Library/UefiDebugLibStdErr/DebugLib.c