qwang12 [Fri, 23 Jun 2006 14:41:16 +0000 (14:41 +0000)]
1) Add in support to traverse taken space
2) Remove unused import in DynamicTokenValue.java.
3) Support Byte Stream input for Pointer type Dynamic PCD entry in FPD file.
klu2 [Fri, 23 Jun 2006 13:17:53 +0000 (13:17 +0000)]
The main trunk of tip is broken by Scott's removing of PcdPeimTest driver, but forget remove it from EdkModulePkg.spd and <FrameworkModules> in Nt32.fpd. I have fixed it.
qwang12 [Fri, 23 Jun 2006 04:30:23 +0000 (04:30 +0000)]
1) remove some dead code from WinNtBusDriver.c
2) change PCD_INVALID_TOKEN_NUMBER to 0 as stipulated in MWG spec and PCD spec.
3) support returning a Default Value when a read failure by variable service for PCD entry with Variable Enabled.
4) Remove a lot of unreferenced JAVA import from CollectPCDAction.java, PCDAutoGenAction.java, MemoryDatabaseManager.java, Token.java and UsageInstance.java.
5) Opimized to merge elements in all tables in PCD database for make the code compact.
6) Did a tighter check on how dynamic PCD entry is referenced in each module.
7) Update the PCD driver/PEIM and PCD database generation verion to 2.
klu2 [Thu, 22 Jun 2006 14:08:17 +0000 (14:08 +0000)]
In before, FixedPcdGetxx macro was defined as global variable, it is wrong. It should be defined as value directly, and module developer can use it to define length of array.
1) Change macro FixedPcdGetxx to value macro.
2) Change some wrong macro usage in library.
klu2 [Thu, 22 Jun 2006 14:07:22 +0000 (14:07 +0000)]
In before, FixedPcdGetxx macro was defined as global variable, it is wrong. It should be defined as value directly, and module developer can use it to define length of array.
1) Change macro FixedPcdGetxx to value macro.
2) Change some wrong macro usage in library.
klu2 [Thu, 22 Jun 2006 08:17:35 +0000 (08:17 +0000)]
In before, module type is judged by the sub element value in <ModuleSA>, it is not totally correct. Now the module type will be retrieved from GlobalData after pre-process all MSA document.
qhuang8 [Thu, 22 Jun 2006 06:09:37 +0000 (06:09 +0000)]
1. UINTN & INTN issue for EBC architecture:
The MAX_BIT of EBC will no longer be fixed to bit 63. It is defined as (1ULL << (sizeof (INTN) * 8 - 1)).
Make EdkModulePkg & MdePkg EBC compiler clean: treat all EFI_STATUS error code as variable.
2. PrintLib
Complete all missing ASSERT()s.
Fix “\n” & “%\n” issue thanks to the clarification of MWG 0.56d.
Adjust StatusString array to support EBC build.
3. BaseMemoryLib
Adjust ASSERT () & function header of ComparaMem, SetMemXX, ScanMemXX to synchronize with MWG 0.56d.
4.SmbusLib
Change Pec bit to bit 22 SmBusAddress to synchronize MWG 0.56d.
Add ASSERT()s to check if length is illegal for SmBusBlockWrite() & SmBusProcessBlock() since it is 6 bit now.
5. PerformanceLib
Rename “EdkDxePerformanceLib” & “EdkPeiPerformanceLib” to “DxePerformanceLib” & “PeiPerformanceLib” respectively.
Synchronize the function header of GetPerformanceMeasurement() with MWG 0.56d.
6. BasePeCoffLoaderLib.
Make PeCoffLoaderLoadImage () Assert() if ImageContext is NULL>
Make PeCoffLoaderLoadImage () return RETURN_INVALID_PARAMETER if the ImageAddress in ImageContext is 0.
Adjust some coding style.
qhuang8 [Thu, 22 Jun 2006 06:08:00 +0000 (06:08 +0000)]
1. UINTN & INTN issue for EBC architecture:
The MAX_BIT of EBC will no longer be fixed to bit 63. It is defined as (1ULL << (sizeof (INTN) * 8 - 1)).
Make EdkModulePkg & MdePkg EBC compiler clean: treat all EFI_STATUS error code as variable.
2. PrintLib
Complete all missing ASSERT()s.
Fix “\n” & “%\n” issue thanks to the clarification of MWG 0.56d.
Adjust StatusString array to support EBC build.
3. BaseMemoryLib
Adjust ASSERT () & function header of ComparaMem, SetMemXX, ScanMemXX to synchronize with MWG 0.56d.
4.SmbusLib
Change Pec bit to bit 22 SmBusAddress to synchronize MWG 0.56d.
Add ASSERT()s to check if length is illegal for SmBusBlockWrite() & SmBusProcessBlock() since it is 6 bit now.
5. PerformanceLib
Rename “EdkDxePerformanceLib” & “EdkPeiPerformanceLib” to “DxePerformanceLib” & “PeiPerformanceLib” respectively.
Synchronize the function header of GetPerformanceMeasurement() with MWG 0.56d.
6. BasePeCoffLoaderLib.
Make PeCoffLoaderLoadImage () Assert() if ImageContext is NULL>
Make PeCoffLoaderLoadImage () return RETURN_INVALID_PARAMETER if the ImageAddress in ImageContext is 0.
Adjust some coding style.
klu2 [Wed, 21 Jun 2006 16:07:38 +0000 (16:07 +0000)]
1) Move almost new schema related to PCD on branch to transition scheme in main trunk.
2) Remove the original unused PCD schema in FPD in main trunk.
2) Modify PCD tools to support updated schema in main trunk.
klu2 [Tue, 20 Jun 2006 17:10:21 +0000 (17:10 +0000)]
Modify autogen code for DynamicEx type PCD.
1) Roll back PcdSetEx/PcdGetEx macro, module developer must input the token space guid explicitly, because in a module maybe two PCD with same CName and token number but in different token space guid.
2) Modify the generated value for _PCD_MODE_xxx for DynamicEx PCD. This macro will be mapped to PcdLibSetEx/PcdLibGetEx directly, and the parameter of token space guid is auto generated.
3) For token space guid array variable autogened, only one copy will be exists in a module's autogen C file for different PCD which are in same token space guid.
qouyang [Tue, 20 Jun 2006 11:57:17 +0000 (11:57 +0000)]
Add exception and log mechanism
1. Add :
a. GenBuildLogger.java in Tools/Source/GenBuild/org/tianocore/build/gobal.
b.Tools/Source/Common/build.xml
2. modify:
a.edksetup.bat
b.Tools/build.xml
c.Tools/Source/GenBuild/build.xml
d. Tools/Source/GenBuild/org/tianocore/build/GenBuildTask.java
vanjeff [Tue, 20 Jun 2006 05:30:27 +0000 (05:30 +0000)]
1. Fixed bug for WriteUnaligned24() in Unaligned.c of BaseLib
2. Added assert() for AsmFxRestore() in x86LowLevel.c of BaseLib
3. Added assert() for LongJump() in LongJump.c of BaseLib
4. Changed parameter type of Value from "IN" to "IN OUT" for InterLockedComparedExchanged32/64/pointer() functions to sync with MWG-0.55a
5. Changed functions header of all BitField functions of BaseLib, BaseIoLibIntrinsic, BasePciCf8Lib, BasePciExpressLib, BasePciLibCf8, BasePciLibPciExpressLib DxeIoLibCpuIo, PeiIoLibCpuIo etc, to follow MWG-0.55a.
qhuang8 [Mon, 19 Jun 2006 07:41:18 +0000 (07:41 +0000)]
1. PostCodeLib.
Rename BasePostCodeLib80 to BasePostCodeLibPort80.
Fix typos in macro POST_CODE() and POST_CODE_WITH_DESCRIPTION()
2. DebugLib
Change the parameter type of LineNumber of DebugAssert() from “INTN” to “UINTN” to follow MWG.
Add type cast “(EFI_GUID *)” in macro ASSERT_PROTCOL_ALREADY_INSTALLED () to follow MWG.
3. BasePeCoffLib/
Add library function header for all the interfaces in MWG.
Add missing ASSERT()s.
4. PciLib
Add ASSERT()s in PciRead/WriteBuffer() to check cross PCI function access.
qhuang8 [Mon, 19 Jun 2006 07:40:23 +0000 (07:40 +0000)]
1. PostCodeLib.
Rename BasePostCodeLib80 to BasePostCodeLibPort80.
Fix typos in macro POST_CODE() and POST_CODE_WITH_DESCRIPTION()
2. DebugLib
Change the parameter type of LineNumber of DebugAssert() from “INTN” to “UINTN” to follow MWG.
Add type cast “(EFI_GUID *)” in macro ASSERT_PROTCOL_ALREADY_INSTALLED () to follow MWG.
3. BasePeCoffLib/
Add library function header for all the interfaces in MWG.
Add missing ASSERT()s.
4. PciLib
Add ASSERT()s in PciRead/WriteBuffer() to check cross PCI function access.
klu2 [Mon, 19 Jun 2006 03:53:41 +0000 (03:53 +0000)]
Fix a bug of PCD autogen for UINT64:
when generate macro value for a UINT64 type PCD, "ULL" should be added to forbid compiler tread it as UINT32 value.
klu2 [Sat, 17 Jun 2006 09:57:06 +0000 (09:57 +0000)]
Change the macro for dynamicEx type PCD and modify autogen tools to auto generate TokenSpaceGuid. After modification, you can use two method access DynamicPCD,
1) PcdGet8/PcdGet32/... to get a value of DynamicEx PCD, same as PcdSetxx
2) PcdGet8Ex/PcdGet32Ex to get a value of DynamicEx PCD, same as PcdSetxxEx.
qouyang [Wed, 14 Jun 2006 08:07:19 +0000 (08:07 +0000)]
Remove the dependence to MdePkg
1. add Include folder which contain the *.h file which used by Tiano tools.
2. Change ${evn.WORKSPACE}/MdePkg to ${PACKAGE_DIR} in build.xml.
klu2 [Wed, 14 Jun 2006 04:01:11 +0000 (04:01 +0000)]
Fix two transition issue:
1) Although current PCD tool's code support use packageName, packageGuid, version, arch to identify a module, but these value can not be got from FPD file, so use null for transition phase.
2) Add transition code to check <TokenSpaceGuid>, In future, the checking work should be done by schema checking tools when change occur of <TokenSpaceGuid> from[0..1] to [1] in schema.
lhauch [Wed, 14 Jun 2006 02:14:50 +0000 (02:14 +0000)]
Updated MsaFiles to be a choice of <Filename> [1..*] or <MsaFile> [1..*] and added the ModuleGuid, ModuleName and ModuleVersion to the FilenameAttributes in the Transistion Schema.
klu2 [Tue, 13 Jun 2006 09:40:16 +0000 (09:40 +0000)]
Fix some bugs in PCD tools:
1) Normalize the exception text format,
2) Add throw exception in some special case.
3) Add more code to verify Datum Size.
qhuang8 [Tue, 13 Jun 2006 06:31:11 +0000 (06:31 +0000)]
BaseMemoryLib (BaseMemoryLibRepStr):
Fix a logic error in SetMem64 (); The correct stride should be 8 instead of 4.
BasePrintLib:
Fix Printf(“%\n”) passer error.
Fix BufferSize = 0, 1 issue
Fix some missing ASSERT ()s
Move MAXIMUM_VALUE_CHARACTERS from PrintLibInternal.h to PrintLib.h
ReportStatusCodeLib:
Add CONST modifier to some interfaces
Modify
DebugLib:
Replace some Unicode in comments.
PeiServicesTablePointerLib
Add ASSERT()s
PciLib:
Remove unnecessary ASSERT()s in PciRead/WriteBuffer()
klu2 [Tue, 13 Jun 2006 05:46:05 +0000 (05:46 +0000)]
1) Fix a bug for PCD autogen tools, see track#115 in PVCS: Module's PCD informtion is generated into autogen.h/autogen.c of library
2) Remove PcdEmulatedDriver from PcdAutogen class.
klu2 [Mon, 12 Jun 2006 15:11:33 +0000 (15:11 +0000)]
Transfer old <PCDs> in MSA to <PcdCoded>:
1) Add <PcdCoded> definition for library module SA in transition schema.
2) Add <PcdCoded> in all MSA instead of original <PCDs>
klu2 [Mon, 12 Jun 2006 07:57:04 +0000 (07:57 +0000)]
Modify PCD tool according to final PCD schema modification.
1) Change code of PCD tools.
2) Update all FPD file.
3) Fix some bugs in FPD for wrong DatumSize.
lhauch [Sat, 10 Jun 2006 20:29:18 +0000 (20:29 +0000)]
Removed create/modified/update data, PacakgeType from headers, added HexWordArrayType for VariableName list, the definition accepts the following: 0x000A, 0x000b, 0x00AF or 0x000A 0x000b 0x00AF or 0x000A,0x000b,0x00AF NOTE: LEADING ZERO characters are REQUIRED!
klu2 [Sat, 10 Jun 2006 13:16:10 +0000 (13:16 +0000)]
Fix some minor bugs on PCD schema according to final schema email send by Larry
1) In <PcdData> of <PcdBuildDefinition>, MaxDatumSize should be added;
2) In <PcdData> of <PcdBuildDefinition>, the number of <Value> should be [0..1] but not [0..n];
3) The max occurs of <SkuId> in <DynamicPcdBuildDefinitions> should be 1;