Commit Graph

1455 Commits

Author SHA1 Message Date
lhauch 586cd1f1f4 Moved the MdePkg to OldMdePkg so that new code in MdePkg does not break existing builds. Also updated the SPD and FPD files UiNames
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2616 6f19259b-4bc3-4df7-8a09-765794883524
2007-06-01 14:49:55 +00:00
qhuang8 c75bbd0e5b Update the Guid Value of Ext SCSI Pass Thru Protocol
Minor update the ASSERT() statement in Switch Stack.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2609 6f19259b-4bc3-4df7-8a09-765794883524
2007-05-31 09:24:58 +00:00
xli24 89ec4b3746 Fix some errors in comments of Status Code include file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2602 6f19259b-4bc3-4df7-8a09-765794883524
2007-05-30 03:38:50 +00:00
vanjeff 76f407a69e Remove some unnecessary #if/#ifdef from some header files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2598 6f19259b-4bc3-4df7-8a09-765794883524
2007-05-21 03:21:53 +00:00
gtian efdbc5199e These updates are for IPF low level assembly library checking in.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2594 6f19259b-4bc3-4df7-8a09-765794883524
2007-05-14 06:51:02 +00:00
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
ajfish d57e9bdca9 Update BaseLib.h to make the spaces between comments constant. Only added blank lines
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2584 6f19259b-4bc3-4df7-8a09-765794883524
2007-05-05 04:16:52 +00:00
xli24 418c6e0918 Fix the DEVICE_PATH_MESSAGING_SAS GUID definition according to UEFI 2.1 spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2557 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-11 05:57:37 +00:00
qwang12 8d7538351f Sync the HII GUID with EDK I code base. Please take note: This GUID is not the same with the one listed in Framework HII Spec 0.92. The HII protocol interface have changed from the one defined in Framework HII spec 0.92. Ergo the HII protocol GUID is updated to reflect the change.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2535 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-05 01:26:00 +00:00
lgao4 13de892cc3 Change BDS to get the default logo picture by default bmp logo guid.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2533 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-04 06:24:26 +00:00
qhuang8 265bfe7cd4 Change the Guid Value of EFI_ISCSI_INITIATOR_NAME_PROTOCOL_GUID.
The original one is 15-byte structure, not a valid Guid structure.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2530 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-04 03:20:39 +00:00
yshang1 01d71f9c85 Rename the enum value of EFI_STANDBY_BUTTON_PHASE.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2529 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-04 03:14:30 +00:00
yshang1 99b64dd977 SMMcis defines "Exit" as the one of phases of EFI_SMM_STANDBY_BUTTON_CONTEXT. The "Exit" conflicts with UefiApplicationEntryPoint library's Exit() in MDE spec and breaks all application build in r9. To fix the issue, I changed the "Exit" to "StandbyButtonExit" in EFI_SMM_STANDBY_BUTTON_CONTEXT temporarily.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2527 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-03 09:23:26 +00:00
qwang12 9471ecb798 Add in OFFSET_OF macro as defined in MDE Library spec
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2523 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-02 08:40:56 +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 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
qwang12 ddc9ec37af Remove the BugBug in package header file for DXE_CORE and DXE_DRIVER which force every driver to include MdePkg/Include/Library/PeCoffLib.h.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2457 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-14 02:12:16 +00:00
qhuang8 df557cca2f 1. Sync definition of EFI_DEBUG_IMAGE_INFO with UEFI spec
2. Make performance data for End of BDS is not recorded in Boot Manager Boot


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2431 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-08 07:04:05 +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 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 f1ad92e867 Add alias EFI_D_XXX to provide backward compatibilities.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2386 6f19259b-4bc3-4df7-8a09-765794883524
2007-02-13 11:09:29 +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
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
xgu3 a8b194b97c 1. PEI core needs to check image machine type
2. In BDS, Legacy free may make BdsLibConnectAllDefaultConsoles fail.
3. Pci22.h, we need to add more definition in that 
4. EBC: EBC Exception Subclass should add EFI_SUBCLASS_SPECIFIC
5. PciEnumeratorSupport Null Pointer Error


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2340 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-31 07:18:41 +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
klu2 f176220269 Modify the EFI_USB_DATA_DIRECTION according to UEFI specification 2.1 page 708.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2283 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-23 09:15:17 +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
qwang12 76dbeb3b91 1) Clean up MdePkg/Include/Common/BootScript.h and remove boot script definition which is not defined in Framework Boot Scirpt Specification V0.91.
2) Add MdePkg/Include/IndustryStandard/SmBus.h which hosts the standard definition defined in System Management Bus Spefication V2.0.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2266 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-18 09:15:52 +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
xgu3 591ee27e84 To fix,
1. ScrollLock key does not work in USB KB driver
2. PCI_ROOT_BRIDGE_IO.configuration should use OUT for Resources


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2248 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-15 06:24:49 +00:00
qhuang8 2da41b57c5 UART_FLOW_CONTROL_DEVICE_PATH should be defined for both EFI and UEFI
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2228 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-12 03:10:06 +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
lgao4 19231e0eca correct SimpleTextIn protocol definition.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2188 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-08 02:19:02 +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
klu2 a477a165ff Fix some Linux's build issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2138 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-26 02:48:15 +00:00
mdkinney c529b1250b Add GLOBAL_FUNCTION macro for Itanium
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2116 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-19 04:01:41 +00:00
mdkinney 4e3f18617e Add FIT types from the SAL Spec to SalApi.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2112 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-19 00:22:38 +00:00
mdkinney 9c89ec9819 Only include SmmCis.h if the CPU Arch is IA32 or X64
Only include SalApi.h if the CPU Arch is IPF

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2108 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-18 20:02:05 +00:00
lgao4 3ec2611d34 Merge R8->R9 tracker 5935 and 7080 to update runtime arch protocol to DxeCis 0.91. Update DxeCore and Runtime driver to follow new definitions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2101 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-14 10:14:24 +00:00
xgu3 ada5e82740 Change the Boot Script storage to fixed length.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2096 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-13 07:36:20 +00:00
wuyizhong 9d3fbdbd47 Fix some minor error. Add EFI_IMAGE_NT_HEADERS definition for IFP and EBC arch.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2087 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-12 08:53:44 +00:00
wuyizhong 406adcd15c Merge GOP related code from r8->r9.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2085 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-12 07:09:03 +00:00
qhuang8 1082de3167 Add a new definition according to Pci spec 2.2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2074 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-08 03:41:30 +00:00
klu2 77206d75ad Add X64 support for DebugSupport driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2068 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-07 08:41:28 +00:00
xli24 a7e39a828e Add enumeration type for EfiProcessorFamilyIntelPentiumM, EfiProcessorFamilyIntelCeleronD, EfiProcessorFamilyIntelPentiumD, EfiProcessorFamilyIntelPentiumEx for processor family data.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2048 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-05 03:40:01 +00:00
bbahnsen 6a138c666a Do not check __STDC_VERSION__ for gcc.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2047 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-04 17:01:58 +00:00
xgu3 1ee7ae6e40 Add Information Opcode in S3 modules.
Information Opcode is a new opcode that allows driver to record any information in script table.
   

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2041 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-30 09:14:25 +00:00
lgao4 b32a39b328 Output DxeCore Entrypoint in DxeIpl module, and make dxecore module can correctly output >4G module entry point address.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2033 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-29 02:54:20 +00:00
mdkinney 4a32862018 Declare the alignment required for jump Buffers
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2021 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-28 02:41:26 +00:00
mdkinney 20bfd422ed Define GLOABAL_REMOVE_IF_UNREFERENCED for IPF on MSFT tool chains
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2014 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-26 04:08:03 +00:00
mdkinney 7ac2bbc147 Add EFI_DELIVERY_MODE to SalApi.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1977 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-18 05:03:37 +00:00
mdkinney da0559bf73 Disable warning when assigning a function pointer to a data pointer
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1976 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-18 05:02:54 +00:00
lgao4 b026832ead Add gcc macro to remove pack() for gcc build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1962 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-16 06:19:47 +00:00
lgao4 4a0b6afe5a Add pack(1) for boot scipt structure.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1960 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-16 05:49:22 +00:00
bbahnsen 1547e08c56 Add ULL to integer literals for gcc support.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1946 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-14 06:48:07 +00:00
mdkinney ea1e4c10aa Set the stack alignment for X64 to 16 bytes per the X64 Calling Convention
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1933 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-13 06:44:15 +00:00
mdkinney b5b60e8b49 Fix ALIGN_POINTER() macro. The pointer (p) passed in must always be converted to (UINTN) prior to performing math operations.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1922 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-09 22:01:56 +00:00
mdkinney caae4de6b6 Add #define CPU_STACK_ALIGNMENT to the ProcessorBind.h for each of the supported CPU architectures. This value is sizeof(UINTN) for IA-32, X64, and EBC. It is 16 bytes for IPF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1920 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-09 21:26:29 +00:00
jtang12 a6b6ec4d58 Update processor socket type definition to comply with SmBios 2.5 spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1916 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-08 06:42:39 +00:00
jtang12 e4a246f134 Changed definitions in Legacy16.h and LegacyBios.h to be compatible with CSM 0.96
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1910 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-08 02:10:54 +00:00
cwu11 b51f14f4d6 This check-in add Pci23.h, Pci30.h, EfiPci.h and take those originally put in Pci22.h to their proper position in the new files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1907 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-07 03:02:33 +00:00
cwu11 3681d193ed This check-in fixed the following bugs:
1.	Pci22.h EFI_LEGACY_EXPANSION_ROM_HEADER definition error
(MdePkg\Include\IndustryStandard\Pci22.h; Tools\CCode\Source\Include\IndustryStandard\Pci22.h)
2.	SetVariable() with DataSize=0xffffffff will cause system hang
(EdkModulePkg\Universal\Variable\RuntimeDxe\Variable.c)
3.	Windows XP Pro & XP HOME Fails to Install from Retail CD
(EdkModulePkg\Bus\Pci\Pcibus\Dxe\PciResourceSupport.c)
4.	Pci22.h header file needs to add some recent type
(MdePkg\Include\IndustryStandard\Pci22.h; Tools\CCode\Source\Include\IndustryStandard\Pci22.h)
5.	Fix issues when ODD cannot boot from Sil0680 PCI-IDE controller
(EdkModulePkg\Bus\Pci\PciBus\Dxe\PciOptionromSupport.c;
EdkModulePkg\Bus\Pci\PciBus\Dxe\PciBus.msa;
EdkModulePkg\ EdkModulePkg.spd)


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1900 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-06 04:20:32 +00:00
qwang12 e0759a83b9 Add EfiGpt.h, ElTorito.h, Mbr.h header files which are for EFI GUID Partition table, ElTorito bootable CD fomrat and Legacy Master Boot Record format into Industry Starndard.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1893 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-03 05:42:01 +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
ajfish 0ffc5441a7 Updated EFAPI definition for x64 GCC. Original thinking was to add optional EFIAPI support to standard GCC. New thinking is to support EFIAPI as a seperate processor target. This is to reduce validation risk to the main line GCC. Update the definition and comments to match current thinking.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1883 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-01 18:26:48 +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
yshang1 f81f558de8 Follow up tracker EDKT285.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1826 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-23 06:10:44 +00:00
jtang12 3fc556d665 Add definition for FB DIMM.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1825 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-23 05:25:25 +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 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
jtang12 7f62acd2fa Added definition of SMBIOS type 15 - System Event Log.
Added some missing field to SMBIOS type 1 - System Manufacturer.
Added some missing field to SMBIOS type 0 - BIOS information.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1801 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-20 03:17:29 +00:00
rsun3 3683e55034 Add two new data hub subclass related definitions per SMBIOS 2.4 spec.
1. memory device type for DDR2
2. System slot type for Pci Express

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1772 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-17 07:04:53 +00:00
qwang12 2193b507f0 DxeCore.h, PeiCis.h and Uefi.h should not include <Protocol/Pcd.h>. If a module need to resolve PCD macro (FixedAtBuild, BinaryPatch or Dynamic), the module should declare that it consume PcdLib library class in MSA file. The Edk II build tool will include "PcdLib.h" in "Autogen.h".
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1699 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-10 03:39:55 +00:00
vanjeff 148ac238cc added ACPI_TIMER_FREQUENCY definition
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1577 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-20 09:15:14 +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 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
jwang36 22a8f52f8e Added two #pragma to disable 4505 & 4206 warnings for MSFT compiler. This is for compiling source files with pre-compiled header file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1442 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-05 01:43:14 +00:00
klu2 7085597507 Fix track EDKT106 & EDKT112: map LibPcdSetPtr function for PatchPcdSetPtr macro function defined in PcdLib library class
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1381 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-24 17:04:56 +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
xgu3 64ec22c0f1 Add boot script dispatch opcode 2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1292 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-16 07:23:37 +00:00
yshang1 9136b0e0ba Add more comments in UefiDriverModelLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1249 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-14 05:18:48 +00:00
lgao4 a682ecebfe Sync this file with MiscSubClass spec and add some struture alias to use them more conviniently.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1226 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-09 09:45:32 +00:00
lgao4 fbea738a07 Move FileInfo.h, FileSystemInfo.h, FileSystemVolumeLabelInfo.h from protocol directory to guid directory, because these three files define the related GUID not protcol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1204 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-07 09:46:03 +00:00
xgu3 4dbd074e66 Modify dispatch opcode for standalone boot script executor
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1199 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-07 07:51:56 +00:00
lgao4 da7dea581d Rename guid variable gEfiSmmPeiSmramMemoryReserve to gEfiSmmPeiSmramMemoryReserveGuid compatible with guid variable CName style
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1122 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-27 13:01:53 +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 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
ljin6 59a6c17936 Add some comments for translator parameter
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1085 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-24 10:37:42 +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
yshang1 f14bb97fa1 Change DxeRuntimeDriverLib name to UefiRuntimeLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1060 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-21 03:41:56 +00:00
lgao4 0647c9adf9 Remove BugBug in comments and adjust function header according to code style doc.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1055 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-20 09:08:37 +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 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
klu2 ebfe209ec0 Add specific flag definition according to ACPI specification.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1049 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-19 14:45:43 +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
ljin6 562d28495d Add DevicePathUtilities DevicePathToText DevciePathFromText USB2HostController protocols
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1037 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-18 04:13:40 +00:00
qwang12 7cd6b97fc7 map FeaturePcdGet(TokenName) to _PCD_GET_MODE_BOOL_##TokenName to follow the build tool's autogen.h output.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1031 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-17 07:41:45 +00:00
qwang12 a7c5092fc5 Add in function description and comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1026 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-17 03:43:28 +00:00
yshang1 efa550c90e git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@954 6f19259b-4bc3-4df7-8a09-765794883524 2006-07-13 06:05:23 +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
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
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
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
lgao4 36122070ec git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@784 6f19259b-4bc3-4df7-8a09-765794883524 2006-07-06 04:02: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
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
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
lgao4 b206d01d42 Sync DebugSupport Protocol with UEFI2.0 spec
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@656 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-29 10:31:10 +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
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 57a38e69b0 Enabling use PcdSetXX macro to set value for PATCHABLE_IN_MODULE, DYNAMIC, DYNAMIC_EX type PCD
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@614 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-23 12:00:58 +00:00
qwang12 db38605523 Remove the dead files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@611 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-23 09:10:00 +00:00
qwang12 c5a198e213 Remove the dead files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@608 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-23 08:42:54 +00:00
qwang12 58f1099f3d 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.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@605 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-23 04:30:23 +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
lgao4 30a60d29aa Fix buger in DxeMain module and modify uefispec.h coding style
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@597 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-22 12:32:30 +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
klu2 11e7b0f6dd 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.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@575 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-20 17:10:21 +00:00
vanjeff 0ffa12863e 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.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@565 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-20 05:30:27 +00:00
qhuang8 cd14fe3dcf 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.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@557 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-19 07:40:23 +00:00
klu2 38ee8d9e66 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.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@549 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-17 09:57:06 +00:00
bbahnsen a68d14777e This was only used by GenFvImage tool, so it can be removed now.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@513 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-14 15:14:46 +00:00
qhuang8 8960cdebac 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()


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@496 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-13 06:31:11 +00:00
qwang12 2a505eac61 1) Sync PcdPpi guid with PCD arch spec.
2) Correct macro PatchPcdSetPtr


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@469 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-10 12:03:36 +00:00
bxing dee4740abe 1. Added AsmCpuidEx() to BaseLib
2. Added DecimalToBcd8() and BcdToDecimal8() to String.c

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@465 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-10 09:37:12 +00:00
bxing 4cbd217532 1. Updated SetJump() and LongJump() for IPF
2. Added assertion for SetJump() for all architectures
3. Added CpuSleep() for IPF

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@464 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-10 07:16:11 +00:00
qhuang8 84a99d48f4 1. Rename PeiCoreLib to PeiServicesLib and rename all the interfaces from PeiCoreXXX() to PeiServicesXXX().
2. Remove PostCode interfaces from ReportStatusCodeLib


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@441 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-08 03:36:57 +00:00
qhuang8 533f039eb0 BaseMemoryLib:
Correct wrong ASSERT()s on SetMem16(), SetMem32(), SetMem64()
HobLib:
Add Missing ASSERT()s for BuildGuidHobData() since CopyMem() now allow zero source buffer with length > 0.
BasePrintLib
Add ASSERT()s to check NULL buffer and NULL format.
PostCodeLib
Add 3 instances of PostCodeLib and introduce new Pcd for post code property mask.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@438 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-07 15:38:52 +00:00
qwang12 8a43e8dd55 Sync Pcd Service Driver, PEIM and library with MDE Spec 0.55a.
1) change all PCD_TOKEN_NUMBER to UINTN
2) change all SKU_ID to UINTN

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@437 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-07 12:31:33 +00:00
alfred 72df7b0fc1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@427 6f19259b-4bc3-4df7-8a09-765794883524 2006-06-06 06:27:01 +00:00
qhuang8 9a462b415d UefiLib:
Add two new interfaces of EfiCreateEventLegacyBootEx & EfiCreateEventReadyToBootEx
Fix a bug in EfiCreateEventLegacyBoot & EfiCreateEventReadyToBoot. (#51)
PciLib:
Add missing ASSERT()s in PciReadBuffer() & PciWriteBuffer() (#70)
IoLib
Add ASSERT()s to check alignment.
MemoryAllocationLib:
For AllocateXXXCopyBuffer(). Add ASSERT()s for cases when allocations fails.
BaseLib:
Change the return type of InternalMathModU64x32 from UINT64 to UINT32


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@416 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-04 13:08:25 +00:00
vanjeff 3f9f540dac add function header
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@350 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-31 08:56:42 +00:00
bbahnsen 342fcc1e99 Fix gcc build breaks.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@295 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-26 17:23:35 +00:00
qwang12 b16ef80556 Sync up Pcd Library Instances and PCD Driver/PEIM with Pcd spec 0.51 and Mde 0.51
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@285 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-26 01:05:31 +00:00
qhuang8 a3657e3e7a MemoryAllocationLib: For boundary case: “AllocationSize + OverAllocationSize >= 4G”
DxeMemoryAllocationLib: Change the behavior from returning NULL to ASSERT ()
PeiMemoryAllocationLib: Add ASSERT ()
I also add ASSERT () in Pei Service AllocatePool () to catch if allocation size > 64K
DebugLib:
Header file (DebugLib.h): Fix an issue in ASSERT_PROTOCOL_ALREADY_INSTALLED(Handle, Guid).  
In contrast with LocateProtocol (), the first & second parameter type of HandleProtocol () is EFI_HANDLE & EFI_GUID respectively.
UefiLib: 
For UnicodeStringDisplayLength (CONST CHAR8 *String), return 0 if String is NULL.
BasePrintLib: 
Add missing “EFIAPI” to UnicodeValueToString() and AsciiValueToString() and move their definitions from PrintLibInternal.c to PrintLib.c.
Fix the comments error(Maximum Length TIME”)


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@275 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-25 10:13:26 +00:00
qwang12 dbdaaec45c 1) Fix bug reported on the PcdSetEx* Macro.
2) Add SKU_ID type


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@252 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-24 08:13:32 +00:00
bbahnsen 6e3b8c4716 Fix capitalization issues
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@208 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-19 19:28:24 +00:00
lgao4 a3a65d3856 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@202 6f19259b-4bc3-4df7-8a09-765794883524 2006-05-19 10:39:41 +00:00
vanjeff d3d867787c Finish bug at line 324:
gBS->LocateProtocol (Handle, Guid, &Instance) error

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@201 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-19 09:47:53 +00:00
bxing b546c3ade2 Updated function headers for CacheMaintenanceLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@185 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-17 10:30:23 +00:00
bxing 97d92bdaf0 Updated BaseLib for THUNK functions and some CPU functions
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@158 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-15 11:14:20 +00:00
lgao4 c1288a3926 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@152 6f19259b-4bc3-4df7-8a09-765794883524 2006-05-14 09:16:36 +00:00
mdkinney f15e4e27c6 Make variable names for protocol GUIDs consistent
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@142 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-12 20:55:40 +00:00
mdkinney 8a1fd113ea Add EfiGlobalVariable GUID to PEIM.h so PEIMs can read standard variables defined by the UEFI 2.0 Specification
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@134 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-12 16:52:07 +00:00
qhuang8 5f10fa0140 *BaseSmbusLib: (new version)
Complete function header, detailed description, ASSERT()s & pass smoke test in MRC of Lakeport package by replacing Smbus PPI. 
*Device Patch Lib
Fix a bug in AppendDevicePathNode() (Solve Track #44 in Remodel PVCS). The original logic failed if the first device path was NULL.
*Performance Lib 
Add PeiPerformanceHob & Performance protocol in spd file in EdkModule Package (Solve Tracker #41, #42 in Remodel PVCS).
*Hob Lib
Add detailed description for each Hob function.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@126 6f19259b-4bc3-4df7-8a09-765794883524
2006-05-11 07:19:55 +00:00
vanjeff 5e3d9e4ed5 Added CONST for some sting type to follow MWG-0.51. Tracker 26 and 28
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@62 6f19259b-4bc3-4df7-8a09-765794883524
2006-04-27 07:18:32 +00:00
qhuang8 abea19dbe1 PeiSmbusLib & DxeSmbusLib
Remove Arp Related interfaces
	Change the return type of SmbusQuickWrite from “BOOLEAN” to “VOID”
	Complete interface SmBusBlockProcessCall()
	Make the PEC bit “bit 21” of SMBUS address. If data show that MSB helps to save code size in BaseSmbusLib, we may simply redefine it to be MAX_BIT.
UefiLib
	Modify the interfaces in UefiNotTiano.c to sync with spec
MemoryAllocationLib
	Add extra checking in “Aligned” Memory services to prevent “AllocationSize + OverAllocation” overflow in DxeMemoryAllocationLib.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@23 6f19259b-4bc3-4df7-8a09-765794883524
2006-04-25 05:51:23 +00:00
bbahnsen 878ddf1fc3 Initial import.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3 6f19259b-4bc3-4df7-8a09-765794883524
2006-04-21 22:54:32 +00:00