|
From: <qh...@us...> - 2010-02-11 05:26:31
|
Revision: 1862
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=1862&view=rev
Author: qhuang8
Date: 2010-02-11 05:26:23 +0000 (Thu, 11 Feb 2010)
Log Message:
-----------
Minor update AutoGen.c template to avoid global variable initialization:
static EFI_STATUS mDriverEntryPointStatus = EFI_LOAD_ERROR;
This statement might fail EBC compiler
Modified Paths:
--------------
trunk/BaseTools/Source/Python/AutoGen/GenC.py
Modified: trunk/BaseTools/Source/Python/AutoGen/GenC.py
===================================================================
--- trunk/BaseTools/Source/Python/AutoGen/GenC.py 2010-02-10 11:59:18 UTC (rev 1861)
+++ trunk/BaseTools/Source/Python/AutoGen/GenC.py 2010-02-11 05:26:23 UTC (rev 1862)
@@ -501,7 +501,7 @@
const UINT32 _gDxeRevision = ${PiSpecVersion};
static BASE_LIBRARY_JUMP_BUFFER mJumpContext;
-static EFI_STATUS mDriverEntryPointStatus = EFI_LOAD_ERROR;
+static EFI_STATUS mDriverEntryPointStatus;
VOID
EFIAPI
@@ -522,8 +522,9 @@
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
+{
+ mDriverEntryPointStatus = EFI_LOAD_ERROR;
-{
${BEGIN}
if (SetJump (&mJumpContext) == 0) {
ExitDriver (${Function} (ImageHandle, SystemTable));
@@ -595,14 +596,17 @@
const UINT32 _gUefiDriverRevision = ${UefiSpecVersion};
const UINT32 _gDxeRevision = ${PiSpecVersion};
+static BASE_LIBRARY_JUMP_BUFFER mJumpContext;
+static EFI_STATUS mDriverEntryPointStatus;
+
EFI_STATUS
EFIAPI
ProcessModuleEntryPointList (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
-
{
+ mDriverEntryPointStatus = EFI_LOAD_ERROR;
${BEGIN}
if (SetJump (&mJumpContext) == 0) {
ExitDriver (${Function} (ImageHandle, SystemTable));
@@ -612,9 +616,6 @@
return mDriverEntryPointStatus;
}
-static BASE_LIBRARY_JUMP_BUFFER mJumpContext;
-static EFI_STATUS mDriverEntryPointStatus = EFI_LOAD_ERROR;
-
VOID
EFIAPI
ExitDriver (
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|