Commit Graph

443 Commits

Author SHA1 Message Date
gtian 63afc36022 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2593 6f19259b-4bc3-4df7-8a09-765794883524 2007-05-14 06:47:11 +00:00
gtian 4d68c21db3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2592 6f19259b-4bc3-4df7-8a09-765794883524 2007-05-14 06:45:05 +00:00
gtian ff756e606b git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2591 6f19259b-4bc3-4df7-8a09-765794883524 2007-05-14 06:44:39 +00:00
gtian 1ab9159e6a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2590 6f19259b-4bc3-4df7-8a09-765794883524 2007-05-14 06:37:46 +00:00
gtian 8e38ef0a9c git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2589 6f19259b-4bc3-4df7-8a09-765794883524 2007-05-14 06:36:58 +00:00
qhuang8 28dec501f4 Fix an issue that some image tool will generate PE32+ image with PE32 magic. We now determine magic based on machine type.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2547 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-09 01:42:09 +00:00
qwang12 abb234751e 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
2007-04-06 06:36:47 +00:00
yshang1 55bfb04e78 Fixed issue for ICC, since ICC does not allow to cast data with volatile qualifier.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2532 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-04 06:22:45 +00:00
yshang1 1b256c950c Update the MSA for ICC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2528 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-04 02:46:32 +00:00
yshang1 a4e9aab95a Updated MSA file for EBC.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2526 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-03 07:13:38 +00:00
yshang1 ef7baf58d0 Add the ReadWriteBarrier in the Acquire/ReleaseSpin to block the unexpected optimization of compiler.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2524 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-03 06:25:25 +00:00
qhuang8 eb9603a0b7 Add comments on the definition of SPIN_LOCK_RELEASED & SPIN_LOCK_ACQUIRED
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2522 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-02 08:15:58 +00:00
qhuang8 46dd23b81e 1.Define SPIN_LOCK as "volatile UINTN" to prevent mutli-processor access harzard.
2.Sync MTFTP4 Protocol GUID with spec.
3.Sync the definition the EFI_IP4_VARIABLE_DATA and EFI_TCP4_VARIABLE_DATA with spec

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2514 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-29 07:45:24 +00:00
vanjeff 0f6b6f755b 1. Removed #ifndef to enable Capsule architecture protocol on IPF.
2. Added ASSERT (FLASE) in SwitchStack ().
3. Removed unreached branch from UefiNotTiano.c.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2510 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-28 03:28:13 +00:00
qhuang8 1f74094161 Correct some wrong usage types
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2509 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-27 09:20:55 +00:00
vanjeff c0b162a2c0 1. Removed definition for EFI_1_1 from module ConSplitter
2. Removed old Intel Framework specification extension for Media Firmware file path from Uefi/UefiSpec.h and UefiLib/UefiNotTiano.c
3. Added EFI revision check in UefiLib/UefiNotTiano.c and removed one EFI_SPECIFICATION_VERSION wrapper in Uefi/UefiSpec.h.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2505 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-26 07:00:30 +00:00
vanjeff cb41bea732 1. Removed AsmSwitchStackAndBackingStore from BaseLib.h
2. Modified SwitchStack definition update to MWG 0.60e.
3. Added BaseLib/Ipf/InternalSwitchStack.c and removed BaseLib/Ipf/Non-existing.c
4. Updated any references of AsmSwitchStackAndBackingStore to SwichStack on IPF.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2499 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-22 03:03:32 +00:00
vanjeff e5f461a850 1. Remove #ifdef _MSC_EXTENSION_ from all source files
2. Remove #ifdef _GCC_ from all resource files
3. Remove #if 0 from all resource files
4. Remove #ifdef MDE_CPU_IPF and #ifdef MDE_CPU_EBC
5. Remove #progam from Decode.c
6. Remove #ifdef TIANO_EXTENSION_FLAG from source files
7. Remove #ifdef SUPPORT_IPV6, since code base doesn't support IPV6 at all.
8. Remove #ifdef SpecialNowaitVersion from pxe_bc_mtftp.c, since it's only used for test.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2470 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-15 02:33:16 +00:00
qwang12 42721684d5 Update the comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2432 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-09 01:12:51 +00:00
qhuang8 c6345a1321 1. Change the protocol usage type in UefiDriverModelLib
2. Remove a redundant Guid entry in spd

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2419 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 07:28:22 +00:00
qwang12 22d9199fe5 Added Print, ErrorPrint, AsciiPrint, AsciiErrorPrint() to the UEFI Library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2392 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-14 06:35:30 +00:00
qhuang8 2c6fae9e7d Clean up MSA for MDE Libs:
1. Remove unreferenced Guid of gEfiStatusCodeDataTypeAssertGuid in PeiReportStatusCodeLib & DxeReportStatusCodeLib.msa
2. Remove dependency of BaseLib for SmmEntryPointerLib & PeiServicesTablePointerLibKr1
3. Add accurate arch support for SecPeiDxeTimerLibCpu & correct PcdFSBClock to "DYNAMIC"
4. Add dependency of gEfiDevicePathProtocolGuid for DevicePathLibDevicePathProtocol
5. Remove dependency of BaseLib & UefiRuntimeServicesTablePointerLib for UefiDriverEntryPointLib


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2389 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-13 12:18:12 +00:00
qhuang8 d670549c79 Remove the wrong dependency on PeimEntryPointLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2388 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-13 11:32:15 +00:00
qhuang8 0d49d8f681 1. Add two interfaces in PeCoffGetEntryPointLib.h
2. Fix the description of EfiTestChildHandle & EfiTestManagedDevice
3. Clean up BasePciLbPciCf8 & BasePciLibPciExpress to remove the dependency on DebugLib

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2387 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-13 11:12:05 +00:00
qhuang8 647db8fd60 Drop the support of DXE_RUNTIME_DRIVER since all combo MDE libraries are removed.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2385 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-13 11:07:47 +00:00
qhuang8 890adc7a25 PcdLib is only referenced by IPF arch.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2384 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-13 11:05:08 +00:00
qhuang8 2e5d68b74a BaseLib is only used by IA32, X64 & IPF
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2383 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-13 11:04:24 +00:00
qhuang8 7f0bd7967e Clean up MSA files
Remove unreferenced PCDs & library instances.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2382 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-13 11:01:18 +00:00
qwang12 6a352324b9 Update all String related functions in BaseLib for this change introduced in Mde Library Spec 0.60e:
"Updated all functions that take pointers to Unicode strings as parameters to ASSERT() if the pointer is not aligned in a 16-bit boundary."

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2375 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-13 01:47:44 +00:00
xli24 15f83a8852 Update MDE and EdkModule packages for ICC build with /W4 /WX /Ox switches, for some latest modifications break it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2366 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-12 08:12:05 +00:00
qwang12 d958721a06 1) Added BIT0, BIT1, …, BIT63 to the Base Defines
2) Added MIN() and MAX() macros to the Base Macros
3) Added StrStr(), StrDecimalToUnitn(), StrDecimalToUint64(), StrHexToUintn(), StrHexToUintn64(), UnicodeToAscii(), AsciiStrStr(), AsciiStrDecimalToUnitn(), AsciiStrDecimalToUint64(), AsciiStrHexToUintn(), AsciiStrHexToUintn64(), and AsciiToUnicode() to the Base Library String Functions
4) Added the Base Library Checksum Functions which include CalculateSum8(), CaclculateCheckSum8(), CalculateSum16(), CalculateChecksum16(), CalculateSum32(), CalculateCheckSum32(), CalculateSum64(), CalculateChecksum64().

5) Added MMIO Buffer functions to the I/O Library including MmioReadBuffer8(), MmioReadBuffer16(), MmioReadBuffer32(), MmioReadBuffer64(), MmioWriteBuffer8(), MmioWriteBuffer16(), MmioWriteBuffer32(), MmioWriteBuffer64().

6) Changed the parameter name from SizeOfValue to SizeOfBuffer in PcdSetPtr(), PcdSetPtrEx(), PatchPcdSetPtr(), LibPcdSetPtr(), LibPcdSetPtrEx(), LibPatchPcdSetPtr()

7) Added RADIX_HEX flag to the Print Library to support the conversion of values to hexadecimal strings in UnicodeValueToString() and AsciiValueToString() 

8) Added EfiGetCurrentTpl() UEFI Library.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2363 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-12 02:53:23 +00:00
vanjeff ff242d4066 updated the comment according to latest version of MWG.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2354 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-06 07:36:38 +00:00
qhuang8 c77f986979 1.Drop the support of UEFI_APPLICATION for UefiDriverLib
2.Change the module type of BaseUefiDecompressLib to BASE
3.Remove the IoLib dependency for PeiReportStatusCodeLib & DxeReportStatusCodeLib
4.Change the module type of UefiApplicationEntryPointLib to UEFI_APPLICATION
5.Change the module type of EdkDxeRuntimeSalLib to DXE_RUNTIMe
6.Change HelloWorld application to depend on UefiApplicationEntryPointLib and modify the EdkModule.fpd, Nt32.fpd & Unix.fpd accordingly 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2352 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-05 05:54:16 +00:00
vanjeff 4faa50287e 1. removed BaseTimerLibLocalApic from MdePkg and Nt32TimerLib from EdkNt32Pkg.
2. added BaseTimerlibNullTemplate in MdePkg and SecPeiDxeTimerLibCpu in MdePkg. 
3. modified the related spd and fpd files

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2347 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-02 05:36:42 +00:00
qhuang8 f8d88c1ffc Fix a typo in last check in.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2336 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-30 09:30:33 +00:00
qhuang8 f5c9674858 Add supported module type & arch filter for all libraries in MdePkg to filter out illegal library instances.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2335 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-30 09:11:43 +00:00
xli24 617de480bc Make MDE and EdkModule packages avoid all Intel IPF compiler warnings except waning 1419.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2326 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-26 06:54:08 +00:00
vanjeff 41da0f33d9 removed SupModuleList firstly
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2319 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-26 02:44:59 +00:00
xli24 582510249f Make MDE package pass intel IPF compiler with /W4 /WX switched on.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2312 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-25 06:05:36 +00:00
lgao4 1a8a2ed39a BaseMemoryLibSse2 library doesn't support IPF and EBC. I remove these archs for this module.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2307 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-25 02:45:41 +00:00
jwang36 92a154063a Added DXE_RUNTIME_DRIVER in the SupModuleList since DxeStatusCode in EdkModulePkg needs this library otherwise it will break the build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2298 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-24 14:40:22 +00:00
vanjeff 4cb9d58c9b add <SupModuleList> in <LibraryClass> item for TimerLib. Inform build tool this timer instance cannot support DXE_SMM_DRIVER drivers, DXE_RUNTIME_DRIVER and DXE_SAL_DRIVER drivers
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2293 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-24 08:04:04 +00:00
yshang1 6c2c7b7460 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2287 6f19259b-4bc3-4df7-8a09-765794883524 2007-01-23 10:10:13 +00:00
yshang1 8c8a13bf5c Updated the function comments in UefiDriverEntryLib to fix EDKT502.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2284 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-23 09:36:01 +00:00
qhuang8 ca21f1a216 Add two useful functions in UefiLib for the implementation of Component Name, Driver Config, and Driver Diag protocols.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2267 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-18 11:15:26 +00:00
vanjeff 92bb9cf637 supmodulelist not supported by now, i remove it firstly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2261 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-17 09:53:31 +00:00
lgao4 497ef745f0 Fix PeLoad function can't handle invalid PeImage to skip correct debug entry.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2253 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-16 06:30:16 +00:00
lgao4 582c7220f8 Correct TeImage Header based on PeiCis spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2250 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-15 11:24:23 +00:00
lgao4 5b66424456 Correct TeImage file format and Clean up PeiRebase tool to remove unused code and only relocate image.
Move two EFI_DEP_REPLACE_TRUE and DEPEX_STACK_SIZE_INCREMENT macros from MdePkg to EdkModule/DxeMain module, because these two macros are specific implementation, not defined in spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2249 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-15 11:13:40 +00:00
lgao4 f92b6f195c Correctly skip debug entry.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2232 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-12 04:54:20 +00:00
bbahnsen fd73932fec Mark some .c files as MSFT only.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2213 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-10 23:46:32 +00:00
bxing a9a812a0ed 1. Added comments to ASM files
2. Fixed a bug in 64-bit AsmDisablePaging64(), which may cause a #GP exception.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2206 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-10 06:57:04 +00:00
bbahnsen 526f8a8a3b The header file applies to all architectures.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2202 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-09 23:14:27 +00:00
qwang12 b244c7dc74 Add in UefiApplicationEntryPoint library class and library instance.
The major difference between UefiApplicationEntryPoint and UefiDriverEntryPoint is that:
1) UEFI application will always be unloaded no matter what is the return status code from the application. Therefore, the library destructors should be called always.
2) UEFI application should not register any callback to evevnt such as EFI_EVENT_GROUP_VIRTUAL_ADDRESS_CHANGE and EFI_EVENT_GROUP_EXIT_BOOT_SERVICES.
3) UEFI application does not support module merger like Uefi Driver.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2199 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-09 08:17:21 +00:00
tgingold a2b1bf96b3 Use ASM_PFX to optionnaly set the underscore prefix
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2179 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-06 14:52:39 +00:00
bxing becca880dc Fixed tracker EDKT395
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2154 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-29 09:06:29 +00:00
vanjeff f3825a180a add <SupModuleList> in <LibraryClass> item for TimerLib. Inform build tool this timer instance cannot support SMM drivers and RUNTIME drivers
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2146 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-28 06:13:22 +00:00
qhuang8 13c8460447 Refix the previous issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2143 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-28 03:51:44 +00:00
qhuang8 f2df6a00a2 Fix a typo in UefiLib. The parameter type of Registration should be "VOID **" instead of "VOID *".
No binary code is impacted.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2142 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-28 03:35:37 +00:00
mdkinney 1a8bde03fc Update DxeSmmDriverEntryPoint library to only support IA32 and X64 CPU archs
Update MdePkg.fpd to only build the DxeSmmDriverEntryPoint library for the IA32 and X64 CPU archs


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2120 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-20 03:11:57 +00:00
mdkinney 513b53b139 Update BaseDebugLibNull to not touch any global variables or PCD settings
Update BasePeCoffLib to include work around for Itanium ELILO images that do not follow the PE/COFF spec

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2083 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-12 05:26:13 +00:00
klu2 b96ad3ace8 The EFI_IMAGE_REL_BASED_DIR64 type has been in switch for all common relocation type, So last check-in is duplicated code. Remove it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2076 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-08 05:09:33 +00:00
klu2 265c22cc33 Handle new relocation type EFI_IMAGE_REL_BASED_DIR64 for X64.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2075 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-08 03:43:57 +00:00
mdkinney 756e4264d3 Move registration and processing of ExitBootServices() events into UefiDriverEntryPoint/DriverEntryPoint.c
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2056 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-06 05:13:52 +00:00
mdkinney addf9aa46c Fix IPF alignment issue when building a Report Status Code message
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2011 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-25 02:07:07 +00:00
xli24 9710b9a67c Add volatile to modify LockValue in ReleaseSpinLock().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2008 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-24 02:27:09 +00:00
yshang1 733f4094ee To Fix PVCS 429.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2007 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-23 09:05:19 +00:00
xli24 2d57c546e0 Add volatile to modify LockValue in AcquireLockOrFail().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2006 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-23 09:01:43 +00:00
bbahnsen 02ad42aed8 Port a couple of files to gnu assembly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2001 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-23 00:22:20 +00:00
mdkinney 9e95f418cc Add PeiServiceTablePointerLib that uses KR1 to save/restore the PEI Services Table Pointer
This library is only valid for Ipf

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1993 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-22 00:41:04 +00:00
mdkinney 9cbd688b1e Add 64-bit I/O port functions that ASSERT()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1992 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-22 00:39:03 +00:00
mdkinney ea8433c9cf Remove DXE Core Entry Point Library Class
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1991 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-22 00:37:34 +00:00
mdkinney 924c490ad3 Remove Peim Entry Point Library Class
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1990 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-22 00:36:59 +00:00
vanjeff 83b3efca13 fix one bug on Timer Frequency return.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1983 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-20 06:26:55 +00:00
mdkinney 2043cd261c Remove duplicate <Extern> for the lib constructor and destructor
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1979 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-18 23:13:54 +00:00
bbahnsen dfd52cc1c6 Add Thunk16.S -- needs to be ported from masm.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1971 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-17 16:54:19 +00:00
bbahnsen a1ef15526b Add gnu x86 assembly sources.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1970 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-17 16:48:52 +00:00
bbahnsen 32804425d7 Add an underscore for gcc.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1969 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-17 16:43:12 +00:00
bbahnsen e29e52e7c0 Initial port to x86_64 gnu assembly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1959 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-16 01:11:41 +00:00
bxing 38b5365e39 Enabled 4G+ memory in thunk.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1957 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-15 09:31:03 +00:00
gtian 3673b8bf33 Add IPF support in Base IO Lib, and related change in fpd file
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1952 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-14 09:34:30 +00:00
vanjeff 6d864b7a91 Rename PcdPlatformBusSpeed to PcdFSBClock and update help text.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1943 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-14 05:43:15 +00:00
vanjeff 885dc4d85a rename PcdGenericPlatformBusSpeed to PcdFSBClock to avoid confusing.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1940 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-13 09:27:49 +00:00
vanjeff 8569244ed1 1. Rename PcdPlatformBusSpeed to PcdGenericPlatformBusSpeed
2. Added PcdComponentNameDisable and PcdDriverDiagnosticsDisable for UefiDriverModuleLib

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1936 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-13 07:11:58 +00:00
xli24 c9708dddc1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1931 6f19259b-4bc3-4df7-8a09-765794883524 2006-11-13 03:40:52 +00:00
vanjeff 0401b900ad added help text for PcdPlatformBusSpeed
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1928 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-10 06:07:39 +00:00
vanjeff b219108e51 added PcdPlatformBusSpeed for BaseTimerLibLocalApic, thus this timer instance needn't depend on types of CPUs
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1909 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-07 08:43:22 +00:00
xli24 38af355c85 Ia32/DivS64x64Remainder.c is not tool-chain specific, it supports both gcc and msft, so the ToolChainFamily="MSFT" description is incorrect.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1904 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-06 08:13:19 +00:00
xli24 29b89ff0c0 According to MDE Library specification, BaseIoLibIntrinsic Module only supports IA32 and X64, but the MSA description says it supports IA32, X64, IPF, and EBC. Now IPF and EBC have been removed from description.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1892 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-03 03:35:22 +00:00
cwu11 511710d68f 1. Add the fix for the following Bugs:
i)	BMM_FAKE_NV_DATA definition inconsistent in bm.vfr and BootMain.h
        (EdkNt32Pkg\Dxe\PlatformBdsDxe\Generic\BootMaint\BootMain.h)
ii)	Change some files’ EOL(end of line) format to DOS. Some file use even mixed style EOL.
   (EdkModulePkg\Universal\DevicePath\Dxe\DevicePath.c, DevicepathFromText.c, DevicePathUtilities.c;
EdkModulePkg\Universal\Disk\DiskIo\Dxe\diskIo.c; MdePkg\Library\UefiLib\UefiNotTiano.c)
iii)    Change some illegal characters in many files, the problem is mainly connected with people using Chinese Input method to input symbols such as ' " - ?, etc. Multiple files are influenced.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1890 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-03 02:47:43 +00:00
mikewuping d4f397c031 1. In event.c, a function's name is not spelled correctly, a typo.
2. In Graphics.c, Memory Leak in Graphics Library, ConvertBmpToUgaBlt().
3. In HobLib.c, PeiBuildHobModule and three other functions do not zero hob reserved data area according to HOB spec v0.9.
4. In statuscode.h, the number of definition of EFI_SW_PEIM_PC_CAPSULE_START is equal to EFI_SW_PEIM_PC_CAPSULE_LOAD.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1861 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-30 07:47:44 +00:00
qhuang8 4bacc21072 Remove the library instance of BaseReportStatusCodeLibNull
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1823 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-23 04:38:50 +00:00
ajfish c993d0dac4 Did not check in new files correctly the first time!
Updated FPD files that include Runtime driver as a new lib was added to Runtime Driver for the cache flush. Removed Cache Flush routine from EDK DXE SAL Lib.
Cleaned up BaseLib IPF cache routines to only Flush ranges when needed and not to flush the entire cache. 

Removed the need for processor specific code in the Runtime driver by using MDE Cache Lib. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1822 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-23 03:58:50 +00:00
ajfish 92ea7f231b Updated the Runtime Driver to use the MDE libs for cache flush and removed local copy of Cache flush code. Updated FPD files that include Runtime driver as a new lib was added to Runtime Driver for the cache flush. Removed Cache Flush routine from EDK DXE SAL Lib.
Cleaned up BaseLib IPF cache routines to only Flush ranges when needed and not to flush the entire cache. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1811 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-22 07:32:16 +00:00
ajfish b077fb7492 Removed duplicate PalCallStatic functions in different libraries. Moved ReadItc and InvalidateInstructionCacheRange to the BaseLib so other libs don't need .s files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1810 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-22 03:06:05 +00:00
ajfish cd4903c497 Removed duplicate PalCallStatic functions in different libraries. Moved ReadItc and InvalidateInstructionCacheRange to the BaseLib so other libs don't need .s files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1809 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-22 03:03:45 +00:00
rsun3 2f8df87003 Fix a bug in InternalMathDivRemU64x64(). The bug is that the 64-bit divisor is designed to be loaded to ecx:ebx but the high 4 byte of the divisor is forgotten to be loaded to ecx
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1693 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-09 10:09:26 +00:00
bxing 73c47db8c7 Optimized HighBitSetXX() functions
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1689 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-08 08:45:59 +00:00
mdkinney 705d3a7756 Use intrinsic
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1670 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-04 23:56:11 +00:00
mdkinney 9730cac8a1 Use intrinsic
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1669 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-04 23:50:23 +00:00
mdkinney 32a4d5cecf Use intrinsic
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1662 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-04 23:07:25 +00:00
mdkinney d8e5077483 Fix GCC build issue
Take advantage of some intrinsics from MSFT build tools


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1661 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-04 23:06:00 +00:00
lgao4 542834ce80 Remove the duplicated Copy Right in msa header.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1634 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-27 09:26:40 +00:00
qhuang8 b7089db120 1.Fix .global issue in GAS (EdkT207).
2.Fix Label start with @ (EdkT208).

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1610 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-25 10:05:26 +00:00
mdkinney 23086ba84c Optimize the size of the Base Library for the MSFT 32-bit tool chains by taking advantage of inline assembly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1567 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 19:04:40 +00:00
mdkinney b053781829 Add GLOBAL_REMOVE_IF_REFERENCED to the declaration of module globals in the Print Library that were still present in the final image even through there were no references to those module globals.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1566 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 19:01:18 +00:00
vanjeff a8e756dad0 add EFIAPI for those constructor funcitons declaration
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1547 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-18 02:07:18 +00:00
vanjeff 34913f248c typecast some return values
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1542 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-15 02:36:38 +00:00
bxing f23d790a79 Added an extra GDT entry to the GDT used by thunk code. SS register will always be loaded as flat segment before switching to 16-bit mode, since SS might not be always valid for NULL selector is allowed in 64-bit mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1541 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-14 16:04:47 +00:00
vanjeff 5117b83be8 update GetPerformanceCounterProperties() declare
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1518 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 01:10:51 +00:00
bxing ed9610eb9c Fixed a bug in WriteBackInvalidDataCache() that always flush cache lines even when the argument Length is zero.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1504 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-09 02:44:57 +00:00
lgao4 8cf2c0a7d7 Change PcdDebugPrintErrorLevel PCD declare in msa as DYNAMIC, because this PCD type can be
FIXED_AT_BUILD and PATCHABLE_IN_MODULE.
Change Some WINNT PCDs type declared in EdkNt32Pkg.spd as DYNAMIC, because they is used in Nt32 emluator platform as DYNAMIC type.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1494 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-07 08:24:27 +00:00
bxing ddc316e240 Changed GetPerformanceCounter() to use the most efficient mean to unsigned extend an UINT32 value.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1343 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-22 01:36:09 +00:00
bxing f094c270ee A workaround to a compiler bug that causes the high order 32 bits of GetPerformanceCounter() being indeterminate.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1336 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-21 09:32:26 +00:00
bxing eeb1cd5af3 1. Added Non-existing.c in BaseLib to assert no invocations of SwitchStack() on IPF.
2. Added SwitchIplStacks() function to DxeIplPeim to encapsulate arch details on stack switching.
3. Added PeiSwitchStacks() function to PeiMain to encapsulate arch details on stack switching.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1328 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-21 02:53:29 +00:00
bxing 6e028650e7 Fixed a bug causing the high order double word of values returned by GetPerformanceCounter() became -1.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1322 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-18 08:33:00 +00:00
klu2 ca844f3623 Continue to fix EDKT187.
After discussion with ouyang, qian and shi, carl, we find it is no necessary to add PcdLib according to whether library instance use PcdLib.
In this patch. I remove original fixing and correct some MSA file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1315 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-17 16:23:46 +00:00
bxing 681dbac98c Added AsmSwitchStackAndBackingStore() to BaseLib.h for stack switching on IPF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1305 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-17 05:32:47 +00:00
vanjeff 9c7790d2cb 1. Adjust might be 64bit, so we need to typecast it to UINT32 firstly.
2. Synchronization modification described in Tracker EDKT182 to all dependent files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1270 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-15 06:35:47 +00:00
yshang1 af7964350b git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1245 6f19259b-4bc3-4df7-8a09-765794883524 2006-08-14 03:34:45 +00:00
yshang1 b059e41102 Add function headers in UefiDriverModuleLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1244 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-14 03:33:32 +00:00
ajfish 317f832ef8 Fixed bugs found when this code was ported into R8.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1240 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-11 18:04:56 +00:00
bxing 3a5dcc063c Removed unnecessary MSR access in InternalX86Delay()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1228 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-10 04:42:10 +00:00
bxing cea9bda05a 1. Added ReadWriteBarrier() before and after each I/O read/write function.
2. Removed all ReadWriteBarrier() function calls in all MMIO functions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1224 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-09 06:38:30 +00:00
qhuang8 57315d7035 Fix a typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1176 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-02 04:33:35 +00:00
vanjeff 4a78c00aac 1. cleanup functions header in PeCoffLoaderEx.c
2. fixed link error in EnablePaging64.asm

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1175 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-02 03:19:19 +00:00
bxing eb227e96bd 1. Updated function headers for all assembly function
2. Optimized register usage in SetMemXX functions in all lib instances
3. Fixed a logical error in CopyMem for all lib instances


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1139 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-28 07:28:19 +00:00
lgao4 c941b270ea TeImage Signature should be got from Te pointer, not Pe pointer
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1136 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-28 06:08:00 +00:00
klu2 aa0dc7b430 Fix a warning issue under CYGWIN_GCC building:
A function cannot be declared as returning a data object having a volatile or const type, but it can return a pointer to a volatile or const object.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1121 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-27 12:25:28 +00:00
ajfish 236877a6a7 Added back safety check for PE/COFF image walking. I think the safety check is broken in some places (Linux) but we need to investigate more.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1108 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-26 23:34:08 +00:00
ajfish 2ce311322c Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class.
Added PeCoffLoaderGetMachineType to the PeCoffGetEntryPointLibrary Class. Document to be updated.

Added the PeCoffLoaderImageReadFromMemory() and PeCoffLoaderRelocateImageForRuntime () to the PcCoffLib. 

Updated EfiImage.h and removed EFI_IMAGE_OPTIONAL_HEADER and EFI_IMAGE_NT_HEADERS as they were replaced with checking the MachineType.

PeCoffLib – Added checks for MachineType so the PeCoff lib can load any PE32 or PE32+ image. The relocations are still limited to IA32, X64, IPF, and EBC. I also added a re-relocator function to remove PeLoader Code from Runtime Lib. Even though there is only one instance of the re-relocator I wanted to get all the PeCoff loader code together.

Replaced DEBUG_CODE() macro with DEBUG_CODE_START() and DEBUG_CODE_END() so you can debug through the DEBUG_CODE() macros. Also removed PE/COFF code and replaced with library usage.

I also updated the IO Instrinsic lib to use _ReadWriteBarrior() to help with sync problems

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1103 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-26 15:23:35 +00:00
bxing ebca816989 Added a 64-bit version of EnablePaging64() on X64. AsmEnablePaging64() is the transition code to switch the processor from 32-bit into 64-bit long mode and thus is typically linked with 32-bit images only. However, it's desired to link the transition code into a 64-bit image in some special cases. CPU driver is a good example among those.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1092 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-25 08:30:02 +00:00
bxing 452e6c77be Updated function headers according to latest MWG.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1090 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-25 07:37:25 +00:00
bxing ed384ef31c 1. Updated declaration of timer functions according to latest MWG.
2. Updated coding style.
3. Updated the algorithm used in delay functions to handle timer counter wrap-around.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1089 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-25 07:33:02 +00:00
qhuang8 c4898a017e Fix a bug in UefiDevicePathLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1084 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-24 10:15:33 +00:00
qhuang8 9a557fb6c7 Remove the instance of BaseSmbusLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1076 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-23 12:55:55 +00:00
qhuang8 1f33a17ff1 Adjust coding style for MemoryAllocationLib.
Add function header for an internal function of PciExpressLib
Fix a typo in one comment of UefiLib
Remove BaseSmbusLib

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1075 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-23 12:55:05 +00:00
bxing 3f566587ae 1. Updated function headers in all assembly files.
2. Split x86LowLevel.c into a bunch of C files to make images linked with BaseLib smaller.
3. Fixed a few minor bugs.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1066 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-21 08:47:38 +00:00
vanjeff 151c1ccdcd Modified comment for gDs
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1054 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-20 07:27:57 +00:00
vanjeff 9f73d38da4 added some comments in BaseLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1053 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-20 04:00:59 +00:00
vanjeff bda7fbcc2f 1.Added EFIAPI for some assembly functions declare
2.Modified some functions header 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1052 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-20 02:48:06 +00:00
vanjeff 1ea5ca46c7 1. added functions header for BaseUefiDecompressLi
2. added some internal functions header for BaseLib
3. added EFIAPI for some internal assembly files declare

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1050 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-19 17:37:07 +00:00
ajfish a537f1483c Fixed some naming issues and update to the EDK II name. I also fixed an issue with the UEFI library forcing UEFI.h to include Tinao protocols. I make the UEFI library a DXE library so it would get the correct includes.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1048 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-19 12:24:11 +00:00
qwang12 2a870f5348 Add [in,out] in the @param for PCD header and c file.
Update GetNextToken and GetNextTokenSpaces APIs parameter sequence according to PCD spec.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1040 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-19 05:18:47 +00:00
klu2 4b9fc76f7b Fix track EDKT104: If a module use PCD, MSA of this module should use PcdLib libraryClass.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1034 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-17 14:31:03 +00:00
bxing bbe4ba8149 Modified coding style, removed unnecessary comments and "offset" key words.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1033 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-17 09:38:46 +00:00
qhuang8 3847c8f315 Add missing ASSERT()s in PeiPcdLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1002 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-14 07:48:36 +00:00
qhuang8 44cf7a02c1 Port thunk16 code from MSFT to GCC assembly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@999 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-14 06:30:17 +00:00
jwang36 5e1c3eedcd Added license & copyright declaration
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@967 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 08:24:50 +00:00
bxing 3cc092acf2 Revised GetPowerOfTwo32() and GetPowerOfTwo64() to be more efficient.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@963 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 08:05:35 +00:00
qhuang8 f23c214dca Fix bug in .S files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@952 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 05:58:02 +00:00
jwang36 3fc9d866c4 Enforced case-sensitive on the file names;
Corrected file and/or path names in some msa files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@949 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 05:21:14 +00:00
qhuang8 64ad76699c 1. Add Assert in SetJump.S
2. Rename internal function of ModU64x32.S to avoid collision.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@948 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 04:58:40 +00:00
qhuang8 d08b357f8a 1.Fix SetMem64.S to not use SSE3 instruction
2.Make sure NULL-terminator can be appended.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@945 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 04:19:34 +00:00
qhuang8 4f7f1f5fa8 BasePrintLib: Fix Buffer Overflow issue.
BaseMemoryLib: Fix error in CopyMem.S for BaseMemoryLibMmx & BaseMemoryLibRepStr instance.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@938 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 01:53:27 +00:00
vanjeff a42b182076 added function header
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@935 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 01:17:21 +00:00
qhuang8 871fdd38c5 Fix a typo BaseLib.msa and add the missing file in BaseSmbusLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@922 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-12 15:11:21 +00:00
qhuang8 1fe4ef1bd8 1. Updated some files’ description files in MdePkg, EdkModulePkg & EdkNt32Pkg.
2.	Update .msa files to add some missing files files in MdePkg 
3.	Add Help text to Mde Library related PCDs.
4.	Fix some bugs in CpuId.S and CpuIdEx.S.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@919 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-12 14:15:40 +00:00
qwang12 cf93f221c6 Remove some junk informatin.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@914 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-12 12:28:44 +00:00
yshang1 7fda265d2f git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@910 6f19259b-4bc3-4df7-8a09-765794883524 2006-07-12 11:15:11 +00:00
alfred 13091b658e git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@906 6f19259b-4bc3-4df7-8a09-765794883524 2006-07-12 10:34:39 +00:00
alfred abf537ea15 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@905 6f19259b-4bc3-4df7-8a09-765794883524 2006-07-12 10:24:36 +00:00
bxing db8f40e294 1. Added '#pragma pack' directive in BaseLib.h for the structure IA32_DESCRIPTOR
2. Updated SetMem64.asm's to remove any SSE3 instructions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@901 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-12 09:23:28 +00:00
qwang12 2de0141aab Add in Abstract and Description for a few MSA files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@897 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-12 08:16:09 +00:00
qhuang8 bd0cd44be5 sync GCC assembly files with MASM assembly files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@878 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-11 10:25:13 +00:00
vanjeff 4748b24d77 1. Fix one bug on EBC for GetPowerOfTwo64.c
2. Fix one bug for GetPowerOfTwo32.c and GetPowerOfTwo64.c, when Operand is 1, 1 should be returned

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@873 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-11 07:48:43 +00:00
qouyang 53b8619385 Change UINAME to CName of GUID/PPI/Protocol in all Msa file and change tool to support it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@863 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-10 10:14:25 +00:00
qhuang8 5b1b9d8bf4 1. BaseSmbusLib: Make SmbusReadDataByte() & SmbusWriteBlock() function well by re-arranging register settings.
2. BaseMemoryLibMmx for X64: Make CopyMem() be reentrant by saving Mm0 to r10.
	3. DxeCorePerformanceLib: Fix some typo to save build error of that library instance.
	4. Remove the orphanage definition of gEfiPerformanceProtocolGuid


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@859 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-10 08:41:58 +00:00
bxing 003673f507 Fixed a syntax error in BasePciCf8Lib/PciLib.c
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@852 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-10 03:20:48 +00:00
bxing 9748aecca6 1. Fixed a logical error in PciReadBuffer() and PciWriteBuffer()
2. Fixed GetInterruptState() on IPF to return the state of interrupts correctly

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@850 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-10 02:56:56 +00:00
vanjeff 03e772c322 In AsciiStrncmp(), if length=0, should return 0
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@840 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-08 15:21:04 +00:00
lgao4 15b06e58b0 Redefine SPEC and Release Version to 0x20000
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@826 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-07 14:37:11 +00:00
jwang36 44050d53af Obsoleted by new schema and new build tools.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@821 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-07 09:28:33 +00:00
qhuang8 28c73f6ef7 PciLib:
For PciRead/WriteBuffer(): A fix to handle boundary cases when Size is 0;
	DevicePathLib:
	For FileDevicePath(): Change to use AppendDevicePath () in place of AppendDevicePathNode(). 
	PrintLib:
	For type %p, according to current MWG, it should ignore flag 0, +, space, l, & L
	Misc:
	Fix a bug in EBC interpreter for Ia32. 


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@796 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-06 10:37:49 +00:00
jwang36 df569f61e3 Fixed the GCC assembler issue. Now we can use full GCC tools to build our package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@795 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-06 10:31:48 +00:00
bxing a69c49fc11 1. Simplified PalCallStatic.s's by removing unnecessary condition testings.
2. Fixed a logical error in Synchronization.c which caused InterlockedIncrement() and InterlockedDecrement() to hang.
3. Replaced the pseudo-implementation of GetInterruptState() with a real version.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@793 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-06 07:46:22 +00:00
qwang12 1de04b4f83 Add in support for MaxSize and CurrentSize for PCD entry.
Change the behavior for PcdSET for Variable_Enabled Pcd entry. If a Variable does not exist, we will only save the value to a volatile space. We save it to variable ONLY when the variable exist. 

Fix a few bugs in Pcd Build tool when generated Pcd database for Pcd entry with Unicode String type.

Support PcdSet to return MaxSize if the input SizeOfBuffer is greater than the Max Size declared in FPD file.

Add SetValueWorker and GetValueWoker for each PcdSET and PcdGET function to reduce code size.

Sync function prototype definition for PCD_PPI_SET_POINTER, PCD_PPI_SET_EX_POINTER, PCD_PROTOCOL_SET_POINTER and PCD_PROTOCOL_SET_EX_POINTER with PCD arch spec 0.52.

Add ASSERTION in LibPcdSetPtr.





git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@789 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-06 06:10:20 +00:00
vanjeff d9da5f5982 1. Sync LinkedList.c with MWG
2. Fix one bug in Ipf/InterlockedCompareExchange64.s
3. Fix one bug in AsmDisablePaging64()

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@786 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-06 04:07:24 +00:00
lgao4 829a16efd2 Correct module guid in mbd file
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@760 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-05 05:24:48 +00:00
qhuang8 b775e03a84 DebugLib:
Fix a bug in PeiDxeDebugLibReportStatusCode: it should use gReportStatusCodeDebugType so that report status code infrastructure can correctly extract debug info.
	Fix functional and coding style issues in the three instances in EdkModulePkg, namely: EdkDxeDebugLibReportStatusCode, EdkUefiDebugLibStderr, EdkUefiDebugLibConout.
	DevicePathLib:
	Sync with MWG 0.57 and add new interface of CreateDevicePathNode(). All the function headers have been updated.
	PeiServicesLib:
	Adjust coding style and fix a minor comment error.
	PciLib:
	Adjust assert() condition to sync with MWG 0.57
	BaseMemoryLib:
	Adjust assert() for ScanMemXX (), ScanGuid()
	Rename UefiMemoryLib to DxeMemoryLib
	PrintLib:
	Change the return value of all print services to exclude the NULL-terminator.
	Misc:
	Slightly adjust the coding style in hob.c in PeiCore module.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@758 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-05 04:17:57 +00:00
qhuang8 add13dc217 DebugLib:
Fix a bug in PeiDxeDebugLibReportStatusCode: it should use gReportStatusCodeDebugType so that report status code infrastructure can correctly extract debug info.
	Fix functional and coding style issues in the three instances in EdkModulePkg, namely: EdkDxeDebugLibReportStatusCode, EdkUefiDebugLibStderr, EdkUefiDebugLibConout.
	DevicePathLib:
	Sync with MWG 0.57 and add new interface of CreateDevicePathNode(). All the function headers have been updated.
	PeiServicesLib:
	Adjust coding style and fix a minor comment error.
	PciLib:
	Adjust assert() condition to sync with MWG 0.57
	BaseMemoryLib:
	Adjust assert() for ScanMemXX (), ScanGuid()
	Rename UefiMemoryLib to DxeMemoryLib
	PrintLib:
	Change the return value of all print services to exclude the NULL-terminator.
	Misc:
	Slightly adjust the coding style in hob.c in PeiCore module.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@757 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-05 04:17:04 +00:00
qwang12 1eb73ab57a Added LibPatchPcdSetPtr.
Cleaup Pcd Database code generation routine.
Fixed a few bugs.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@745 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-04 12:43:59 +00:00
jwang36 a661b6870a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@742 6f19259b-4bc3-4df7-8a09-765794883524 2006-07-04 12:12:33 +00:00
qwang12 bb5545b663 Add PcdDxe and PcdPEIM to all-arch for EdkModulePkg-All-Archs.fpd
Fix a few bugs in PcdDxe and PcdPEIM


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@722 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-03 15:40:49 +00:00
klu2 5dc355398e Modify MSA file for correcting <TokenSpaceGuidCName>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@713 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-02 19:09:30 +00:00
jwang36 5b2a7957d9 removed unnecessary name space declarations in some top level elements
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@700 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-30 20:31:48 +00:00
jwang36 3bdeb048a5 converted all surface area description files to new schema
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@688 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-30 19:01:55 +00:00
jwang36 5d558ad8cf changed module's duplicated guid value
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@677 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-30 12:38:31 +00:00
vanjeff 30817eb4e4 1.Updated some functions header of BaseLib with new MWG spec
2.Rollback EnablePaging64.asm

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@669 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-30 08:40:03 +00:00
qhuang8 ab1096fdf6 1.BaseMemoryLibMmx: Add X64 Cpu Arch support.
2.BasePrintLib:	Fix some minor bugs


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@651 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-28 09:41:50 +00:00
vanjeff eb6f775856 Change VOID into VOID * in function header
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@650 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-28 09:01:26 +00:00
vanjeff 939d540699 1. Fixed bug in FlushCacheLine.asm, added return value
2. Updated AsmEnablePaging64(), added far jump to long mode with updating CS

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@649 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-28 08:42:05 +00:00
qwang12 3534cbb7a3 1) correct the assert condition for LibPcdSetPtr and LibPcdSetExPtr
2) make sure VOID* type dynamic PCD entry can handle ASCII string correctly.
3) correct one bug where if StringTable is empty the autogen.c won't compile.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@630 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-26 13:41:23 +00:00
qhuang8 923e598702 • BaseMemoryLib:
Modify some Aassert()s conditions to sync with MWG 0.56d
	Modify some defects in function header.
•	PostCodeLib:
Implement PeiDxePostCodeLibReportStatusCode.
•	Misc
Rename BaseDebugLibReportStatusCode to PeiDxeDebugLibReportStatusCode
	Remove tabs in all .c and .h files in MdePkg.
	Rename PeiServicesReinstallPpi() to PeiServicesReInstallPpi()
	Adjust some minor coding style in PeCoffLoaderGetEntryPointerLib()



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@628 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-26 10:20:56 +00:00
qhuang8 a1b1aca617 • BaseMemoryLib:
Modify some Aassert()s conditions to sync with MWG 0.56d
	Modify some defects in function header.
•	PostCodeLib:
Implement PeiDxePostCodeLibReportStatusCode.
•	Misc
Rename BaseDebugLibReportStatusCode to PeiDxeDebugLibReportStatusCode
	Remove tabs in all .c and .h files in MdePkg.
	Rename PeiServicesReinstallPpi() to PeiServicesReInstallPpi()
	Adjust some minor coding style in PeCoffLoaderGetEntryPointerLib()



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@627 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-26 10:20:22 +00:00
qhuang8 24e25d11c0 • BaseMemoryLib:
Modify some Aassert()s conditions to sync with MWG 0.56d
	Modify some defects in function header.
•	PostCodeLib:
Implement PeiDxePostCodeLibReportStatusCode.
•	Misc
Rename BaseDebugLibReportStatusCode to PeiDxeDebugLibReportStatusCode
	Remove tabs in all .c and .h files in MdePkg.
	Rename PeiServicesReinstallPpi() to PeiServicesReInstallPpi()
	Adjust some minor coding style in PeCoffLoaderGetEntryPointerLib()


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@626 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-26 10:18:28 +00:00
klu2 23f52b03b4 Roll back modification for autogen of assemble code, we do not support PCD autogen for assemble code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@625 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-26 02:27:11 +00:00
qwang12 4276d5dacf 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.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@616 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-23 14:41:16 +00:00
klu2 dc530c7b9d 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.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@598 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-22 14:07:22 +00:00
qhuang8 4ba61e5e2a 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.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@593 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-22 06:08:00 +00:00