summaryrefslogtreecommitdiff
path: root/MdePkg
AgeCommit message (Collapse)AuthorFilesLines
2009-06-05Update comment for return description for PcdSetX macros.klu21-19/+19
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8474 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-05The return description for LibPcdSetx function is ambiguity. The actual ↵klu21-13/+13
meaning of return value is input parameter, but not the value/pointer exist in PCD database. So this patch use parameter name directly in description for return value. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8472 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-05Add missing parameter check ASSERTs in ScsiReadCapacity16Command() of ↵rsun31-0/+6
UefiScsiLib. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8471 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-04Fix build breaks from comment clean up checkinmdkinney6-16/+51
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8468 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-04Second set of changes based on a review of the code comments in the Include ↵pkandel38-307/+268
directory for typos, grammar issues, and language clarity. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8467 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-04Add ASSERT check for AsmFlushCacheRange().xli245-27/+103
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8465 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-04fix the issue when passing a L"" string to PrintXY.eric_tian1-4/+20
1. According to the value of RowInfoArraySize to get the actual number of printed line. 2. If RowInfoArraySize equates 0, then it means nothing is printed. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8464 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-04update comments per review comments.vanjeff11-35/+35
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8463 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-04Reviewed the code comments in the Include/Protocol directory for typos, ↵pkandel55-218/+219
grammar issues, and language clarity. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8462 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-031. Fix the bug that we should use rip relative addressing for x64 label to ↵qhuang81-8/+8
prevent GNU assembly generate incorrect code. 2. Sync the bug fix of MS assembly in r8455. 3. Correct the function prototype in comments. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8456 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-03Save label "@F" to 64-bit register (r10) instead of 32-bit register (eax) in ↵qhuang81-5/+5
case label @F is above 4G. Use "far retq" to load CS and 64-bit rip instead. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8455 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-03modify the implementation of GetInterface and GetConfiguration to force the ↵eric_tian1-0/+4
high byte of output type parameters zero. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8447 6f19259b-4bc3-4df7-8a09-765794883524
2009-06-02Use rip relative addressing for x64 label for Thunk16.S to prevent GCC ↵qhuang81-1/+1
assembly from generating 32-bit value with HIGHLOW fixup. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8444 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-31Correct parameter names for ASSERT() checks.mdkinney1-3/+4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8414 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-30This checkin addresses the compatibility issue of passing arguments of type ↵mdkinney7-73/+492
VA_LIST between components. The type VA_LIST is mapped onto the compiler specific implementation of varargs. As a result, modules build with different compilers may not use the same VA_LIST structure. The solution to this issue is to define a new type called BASE_LIST that is a compiler independent method of passing varargs between modules. Add BASE_LIST type to Base.h Add BAS_ARG() macro to Base.h Add 4 functions to PrintLib.h that use BASE_LIST. Change ReportStatsuCodeExtractDebugInfo() from ReportStatusCodeLib.h to take a BASE_LIST argument instead of a VA_LIST argument Add the 4 new functions to BasePrintLib implementation that use BASE_LIST Update BaseReportStatusCodeLib implementation of ReportStatsuCodeExtractDebugInfo() to use a BASE_LIST argument instead of a VA_LIST argument git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8404 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-26Correct one minor instruction to clear the lower 4 bits of r11.qhuang81-1/+1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8391 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-26Fix the bug in x64 thunk code that it cannot handle the case when GDT is ↵qhuang82-3/+37
loaded in above 4G table memory. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8390 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-26update comments on implementationeric_tian1-1/+1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8389 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-26sync the StrToImage flag of UGA to consistent with GOPeric_tian1-1/+3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8388 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-21update the file description of PrintXY and AsciiPrintXY. and also refine the ↵eric_tian2-50/+48
implementation to return the number of actual printed characters. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8372 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-21Fix ScsiLib build break by << operator, which is replaced by LShiftU64 of ↵lgao42-7/+9
BaseLib. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8363 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-21Remove __APPLE__ usage in ProcessorBind.h files.xli243-17/+17
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8362 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-20Remove redundant #include statementsmdkinney9-18/+2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8357 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-20Remove redundant #includemdkinney1-1/+0
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8356 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-20Update #ifndef to match the name of the include file.mdkinney1-5/+2
Remove extra #include git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8355 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-20Remove extra #include that is not required for this include file.mdkinney1-2/+0
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8351 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-20Define macro for .global/.globl in assembly.xli241-0/+6
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8348 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-20Replace .globl with ASM_GLOBALxli24213-229/+229
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8346 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-201. Remove .extern from GCC assembly.xli2484-83/+92
2. Define macro for .global/.globl in GCC assembly. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8344 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-19Add back logic to encode LUN in CDB for compatibility with SCSI-2 spec, ↵rsun31-2/+56
although LUN encoding in CDB is changed to be reserved in SCSI-3 spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8334 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-19Fix the unaligned issue of PCI read/write buffer.xli244-24/+24
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8333 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-19Fix bugs in the UEFI SCSI Library.rsun31-56/+2
1. LUN number should not be encoded in CDB. 2. Left shift the PageControl field by 6 bits in ScsiModeSense10Command(). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8331 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-19Add BaseLib for BaseCpuLib.inf.xli241-0/+1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8327 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-181. Clean up MdePkg internal header fileslgao420-141/+130
The header files in MdePkg/Include/Ia32, X64, Ipf, Ebc, Pi, Uefi directories are the internal header files, which should not be directly included by the modules. This patch cleans these internal header files to remove the uncessary ProcessorBind.h file. 2. Clean up MdePkg public header files to remove the uncessary internal header files. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8324 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-15cleanup the .S file to wrap all public symbols with ASM_PFX() macro,which is ↵eric_tian33-66/+66
used to generate underscore prior to public symbol or not within various GCC distribution versions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8316 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-15Update CpuSleep() for IPF.xli241-2/+36
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8315 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-141. Add address check for "RegisterForRuntime" APIs of PciLib, PciCf8Lib, ↵xli249-25/+33
PciExpressLib, and PciSegmentLib. 2. Update ASSERT condition for PciCf8Lib, and PciSegmentLib class. 3. According to MDE Lib Spec, add check for reserved bit field 63..48 for PCI segment address. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8311 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-12fixed typo. EFI_OUT_OF_MEMORY should be EFI_OUT_OF_RESOURCES.vanjeff2-7/+7
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8299 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-12Fix the implementation of AsciiStrStr() and StrStr() in MdePkg. If the ↵rsun31-2/+2
length of SearchString is zero, then String is returned. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8297 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-12Minor update the function interface for three re-allocate pool APIs to check ↵qhuang83-30/+22
the conformance of OldBuffer only when the memory allocation succeeds. In this way the assert condition is covered by CopyMem () API in BaseMemoryLib. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8296 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-11Add conformance check for OldBuffer and size even if the memory allocation ↵qhuang83-17/+25
fails. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8294 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-11Fix minor coding style issue for ScsiReadCapacity16Command() API in UefiScsiLib qhuang82-18/+18
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8291 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-11In PrintXY() and AsciiPrintXY(), the number of chartacter returned is at ↵eric_tian1-2/+1
most PcdUefiLibMaxPrintBufferSize, and will return the number of characters actually displayed on the screen not includng partial characters that may be clipped by the right edge of the display. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8289 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-11add the extra comments into BasePeCoffRelocateImage, BasePeCoffLoadImage and ↵eric_tian2-0/+24
BasePeCoffRelocateImageForRuntime to help user to know the usage model of these APIs. The comments mainly used to clarify it's caller's responsibility to to perform cache maintenance operations git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8283 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-10Update GCC version of VAR_ARG () to be compatible with non GCC version of ↵mdkinney1-3/+3
VAR_ARG () so it handles TYPE parameters that are smaller than UINTN properly when GCC builtins are used for vararg parsing. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8282 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-09Clarify BuildCvHob() API in HobLib to state that this function will ASSERT() ↵mdkinney4-0/+4
if the platform does not support Capsule Volume HOBs. This allows PI implementations to ASSERT() and Framework implementations to provide a full implementation of this API. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8278 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-09Update function header description of ScsiReadCapacity16Command() in the ↵mdkinney2-56/+64
UEFI Scsi Library git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8277 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-09Clarify that FreePages(), FreeAlignedPages(), and FreePool() may perform n ↵mdkinney3-9/+20
actions if those operations are not possible. For example, the PEI Phase does not provide any services to free allocated pages or allocated pool memory. Update comments in PeiMemoryAllocationLib and UefiMemoryAllocationLib to match updates to MemoryAllocationLib.h. Add ASSERT() statements in PeiMemoryAllocationLib for the FreePages() and FreeAlignedPages() if Pages is 0. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8275 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-091) Clarify file and function header comments for the PE/COFF Extra Action ↵mdkinney3-35/+31
library class 2) Update the file and function header comments in the BasePeCoffExtraActionLibNull 3) Add ASSERT() statements to APIs in BasePeCoffExtraActionLibNull is ImageContext is NULL. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8272 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-08Clarify clipping behavior of PrintXY() and AsciiPrintXY().mdkinney2-8/+12
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8271 6f19259b-4bc3-4df7-8a09-765794883524