summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library
Commit message (Collapse)AuthorAgeFilesLines
* Sync patch r11825 from main trunk.vanjeff2012-01-191-3/+3
| | | | | | For BaseLib IsNull() function , update retval value comment to match its function description. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@12935 6f19259b-4bc3-4df7-8a09-765794883524
* sync patch r10781, r10793, r10797, r10799 from main trunk.vanjeff2011-04-187-61/+26
| | | | | | Add security check to make code run safe. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@11548 6f19259b-4bc3-4df7-8a09-765794883524
* sync patch r11046, r11047, from main trunk.vanjeff2011-04-134-12/+12
| | | | | | | Fix the issue that the high 16-bit of EAX may contain invalid data, which cause bad stack pointer, the change will ensure the high 16-bit of EAX is cleared. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@11527 6f19259b-4bc3-4df7-8a09-765794883524
* sync patch r10864, r10865, r10866, r10876 from main trunk.vanjeff2010-10-131-2/+2
| | | | | | | | | 1. Update the Runtime and Smm library to restrict usage to DXE_RUNTIME_DRIVER and DXE_SAL_DRIVER or DXE_SMM_DRIVER module types. 2. Update UefiRuntimeLib MODULE_TYPE to be DXE_RUNTIME_DRIVER. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@10922 6f19259b-4bc3-4df7-8a09-765794883524
* sync patches r10549, r10550, and r10773 from main trunk.vanjeff2010-08-111-17/+205
| | | | | | | | | r10549 - Add Read/Write (16) command to SCSI library. r10550 - If SCSI version support Read/Write (16) command, use both commands to access disk especially for above 2TB. r10773 - According to SCSI spec, ANSI version is 3 bits, so 0x7 should be used to get correct ANSI version. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@10788 6f19259b-4bc3-4df7-8a09-765794883524
* Fix bug in BaseLib AsmCpuVirtual() to return 1 instead of 0 when CPU is in ↵xdu22010-04-271-1/+2
| | | | | | virtual mode. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@10430 6f19259b-4bc3-4df7-8a09-765794883524
* Remove obsolete BuildCapsuleHob() function in DxeCoreHobLib.qhuang82010-03-231-26/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10306 6f19259b-4bc3-4df7-8a09-765794883524
* Add Math64.S to reduce the number of compiler intrinsics that need to be ↵andrewfish2010-03-172-2/+267
| | | | | | supported. It turns out they seem to change from GCC generation to generation. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10259 6f19259b-4bc3-4df7-8a09-765794883524
* Move SmmCoreSmmServicesTableLib from MdePkg to MdeModulePkg.jyao12010-03-052-77/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10203 6f19259b-4bc3-4df7-8a09-765794883524
* Add SmmCore SmmServicesTable library.jyao12010-03-052-0/+77
| | | | | | This library should be used and only used by SmmCore, (compare with SmmServicesTable Lib is used and only used by SmmDriver) git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10202 6f19259b-4bc3-4df7-8a09-765794883524
* Remove SMM_CORE from SmmServicesTableLib.inf that is dedicated for ↵hhuan132010-03-041-1/+1
| | | | | | DXE_SMM_DRIVER git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10183 6f19259b-4bc3-4df7-8a09-765794883524
* Removing "Ex" in PI PCD_PPI/PROTOCOL's interface according to PI 1.2 latest ↵klu22010-03-032-28/+28
| | | | | | update. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10167 6f19259b-4bc3-4df7-8a09-765794883524
* updated definitions of PCD PPI/Protocol per latest UEFI Spec.vanjeff2010-03-011-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10134 6f19259b-4bc3-4df7-8a09-765794883524
* Remove assumption that the transition code for transitioning from 64-bit to ↵mdkinney2010-03-012-15/+21
| | | | | | | | | | 32-bit mode is 64 bytes. Instead compute the size based on the implementation in the ASM file. Update logic to align new 32-bit stack on a 4 byte boundary Update logic to prevent one slot overlap between the transition code and the new stack. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10133 6f19259b-4bc3-4df7-8a09-765794883524
* Update SEC Platform Information PPI according to PI 1.2 errata A.xli242010-02-271-11/+11
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10118 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up EFI_SPECIFICATION_VERSION and PI_SPECIFICATION_VERSION.klu22010-02-259-13/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10071 6f19259b-4bc3-4df7-8a09-765794883524
* Correct Copyright year formatlgao42010-02-241-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10054 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Correct File header to ## @filelgao42010-02-2481-304/+304
| | | | | | 2. Remove unnecessary .common] postfix on section. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10052 6f19259b-4bc3-4df7-8a09-765794883524
* Disable interrupt when changing IDTR register.klu22010-02-235-5/+20
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10046 6f19259b-4bc3-4df7-8a09-765794883524
* Temporarily remove the C implementation of some GCC assembly files in ↵qhuang82010-02-238-4020/+2
| | | | | | MdePkg. They are kept in repository and will be re-evaluate later. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10045 6f19259b-4bc3-4df7-8a09-765794883524
* Remove SMM_CORE as a supported module type for the MemoryAllocationLib ↵mdkinney2010-02-151-7/+3
| | | | | | instance that uses UEFI Boot Services git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10008 6f19259b-4bc3-4df7-8a09-765794883524
* Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVERmdkinney2010-02-142-0/+862
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10001 6f19259b-4bc3-4df7-8a09-765794883524
* 1) Remove dependency on the UEFI Boot Services Table Library so the gBS, ↵mdkinney2010-02-142-29/+18
| | | | | | | | | | gST, and gImageHandle symbols will not be automatically linked into an SMM Driver that uses this library. 2) Remove redundant include of <PiDxe.h> 3) Clean up constructor to use InSmm() library function instead of duplicating logic. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10000 6f19259b-4bc3-4df7-8a09-765794883524
* Remove constructor from this library. This library already has SMM CPU I/O ↵mdkinney2010-02-142-38/+5
| | | | | | | | | | | 2 in its [Depex], so any module using this library will not be dispatched until the SMM CPU I/O 2 Protocol is installed into the SMM handle database and also copied into the SMM Services Table. The worker functions in this library have also been updated to simply use the instance of the SMM CPU I/O 2 Protocol that is present in the SMM Services Table. The dependency on the UEFI Boot Services Table Library has also been removed so the gBS, gST, and gImageHandle symbols will not be automatically linked into an SMM Driver that uses this library. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9999 6f19259b-4bc3-4df7-8a09-765794883524
* Do not set gBS to NULL when the ExitBootServices event notification for the ↵mdkinney2010-02-111-6/+1
| | | | | | | | | | UEFI Runtime Lib is executed. There is no guarantee that the ExitBootServices notification function from this lib will be the last ExitBootServices notification function registered by a module that uses the UEFI Runtime lib. If additional ExitBootServices notification functions require the use of gBS, then setting to NULL will break those additional ExitBootServices notification functions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9982 6f19259b-4bc3-4df7-8a09-765794883524
* Minor update to fix typos and update the file to use \r\n as end of lineqhuang82010-02-011-3/+3
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9901 6f19259b-4bc3-4df7-8a09-765794883524
* Add missing dependency expression for some library instances in MdePkgqhuang82010-02-018-13/+25
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9891 6f19259b-4bc3-4df7-8a09-765794883524
* Add missing [Depex]mdkinney2010-01-291-0/+3
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9860 6f19259b-4bc3-4df7-8a09-765794883524
* Move SmmLib from IntelFrameworkPkg to MdePkg because this library is useful ↵mdkinney2010-01-272-0/+137
| | | | | | to both Framework SMM and PI SMM implementations. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9840 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up MdePkg source to correct some coding style issues, etc.qhuang82010-01-278-31/+76
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9832 6f19259b-4bc3-4df7-8a09-765794883524
* Add type-cast to fix build break for IA32 archqhuang82010-01-151-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9768 6f19259b-4bc3-4df7-8a09-765794883524
* Fix gcc warningAJFISH2010-01-151-31/+33
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9765 6f19259b-4bc3-4df7-8a09-765794883524
* Added new PeCoffGetEntryPoint lib function to get size of PE/COFF header. ↵AJFISH2010-01-141-0/+45
| | | | | | This is needed for debug prints with PE/COFF images that started as ELF or Mach-O. Moved and debugged ARM semihosting lib for RVD that prints out the debugger symbol load commands in a window on the debugger. Trying to write a script file, but that crashes RVD. Added debug print to BeagleBoard Sec that prints out RVD debugger command to load symbols for the Sec. Synced the rest of the code. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9763 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up .h files for the CPU I/O PPI and the CPU I/O 2 Protocol mdkinney2010-01-141-4/+2
| | | | | | | | | Minor clean up to PeiIoLibCpuIo.inf git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9739 6f19259b-4bc3-4df7-8a09-765794883524
* Change SMM CPU I/O to SMM CPU I/O 2mdkinney2010-01-145-53/+16
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9735 6f19259b-4bc3-4df7-8a09-765794883524
* Remove extra reference to SmmCpuIo.hmdkinney2010-01-142-8/+3
| | | | | | | | Minor clean ups to INF git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9733 6f19259b-4bc3-4df7-8a09-765794883524
* PI 1.1 SMM Feature Check-indavidhuang2009-12-2316-13/+5148
| | | | | | | | | | 1. Add SmmServicesTableLib library class/instance. 2. Add SmmIoLibCpuIo/SmmPciLibPciRootBridgeIo library instance. 3. Update some library INF to support SMM_CORE module type. 4. Update dec/dsc to include new modules. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9590 6f19259b-4bc3-4df7-8a09-765794883524
* Fix a bug in MdePkg BaseLib: StrnCat() and AsciiStrnCat() should NULL ↵qhuang82009-12-231-2/+10
| | | | | | terminated the final destination string when Length is equal to the length of Source string git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9588 6f19259b-4bc3-4df7-8a09-765794883524
* Directly use FALSE when BootPolicy is FALSE.lgao42009-12-081-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9540 6f19259b-4bc3-4df7-8a09-765794883524
* 1. fix the wrong description, change "target the buffer" to "the target buffer"eric_tian2009-12-0748-64/+80
| | | | | | 2. fix ICC/GYGGCC build failure on ScanMemN() in X64 arch, it can not reach the last sentence when UINTN is equal to UINT64. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9530 6f19259b-4bc3-4df7-8a09-765794883524
* according to IA32 intel architecture spec, mwait instuction needs not the ↵eric_tian2009-12-071-1/+1
| | | | | | operands. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9527 6f19259b-4bc3-4df7-8a09-765794883524
* fix GCC build issue, mWait instruction need not the operands.eric_tian2009-12-071-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9526 6f19259b-4bc3-4df7-8a09-765794883524
* Fixes for ARM build in the EdkCompatibilityPkg and a couple of Xcode fixes ↵AJFISH2009-12-062-30/+30
| | | | | | for MdePkg. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9520 6f19259b-4bc3-4df7-8a09-765794883524
* Add SetMemN() and ScanMemN() to the BaseMemoryLib class and all ↵mdkinney2009-12-0516-16/+568
| | | | | | BaseMemoryLib implementations git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9517 6f19259b-4bc3-4df7-8a09-765794883524
* Add more check for local FileInfo variable before it is used.lgao42009-12-021-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9506 6f19259b-4bc3-4df7-8a09-765794883524
* Make MEDIA DEVICE PATH on 2 byte aligned to avoid the access to unaligned ↵lgao42009-12-011-1/+16
| | | | | | device path node. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9503 6f19259b-4bc3-4df7-8a09-765794883524
* Add new GetFileBufferByFilePath API into DxeServicesLib.lgao42009-11-262-5/+348
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9486 6f19259b-4bc3-4df7-8a09-765794883524
* Fix a typo bug that miss & klu22009-11-241-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9475 6f19259b-4bc3-4df7-8a09-765794883524
* Explicitly cast PCD_CALLBACK to ↵klu22009-11-242-4/+4
| | | | | | EFI_PCD_PPI_CALLBACK/EFI_PCD_PROTOCOL_CALLBACK) to avoid warning. PCD_CALLBACK in EDKII implementation is compatible with EFI_PCD_PPI_CALLBACK/EFI_PCD_PROTOCOL_CALLBACK. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9474 6f19259b-4bc3-4df7-8a09-765794883524
* 1, PeiPcdLib use EFI_PEI_PCD_PPI defined in PI 1.2 to handle dynamicEx type ↵klu22009-11-244-51/+123
| | | | | | | | | | PCD request. 2, DxePcdLib use EFI_PCD_PROTOCOL defined in PI 1.2 to handle dynamicEx type PCD request. 3, There is no change for dynamic type PCD. 4, Refine the INF's comments. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9473 6f19259b-4bc3-4df7-8a09-765794883524