summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright formathhtian2012-04-241-3/+1
| | | | | | Signed-off-by: Hot Tian <hot.tian@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13213 6f19259b-4bc3-4df7-8a09-765794883524
* Fix build fail for DDK.ydong102012-04-241-2/+2
| | | | | | | Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13212 6f19259b-4bc3-4df7-8a09-765794883524
* Validate some fields in PE image to make sure not access violation for later ↵ydong102012-04-241-1/+9
| | | | | | | | | code. Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13211 6f19259b-4bc3-4df7-8a09-765794883524
* Update HiiFont Service to return error status instead of ASSERT for the ↵lgao42012-04-241-2/+8
| | | | | | | | | | invalid input. Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13209 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg PiSmmCore: Fix a bug in SmmLoadImage() in PiSmmCore that ↵rsun32012-04-241-9/+9
| | | | | | | | | in-correct status codes may be returned. Signed-off-by: Sun Rui <rui.sun@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13208 6f19259b-4bc3-4df7-8a09-765794883524
* Refine the code to have same function to process the string info. Also ↵ydong102012-04-232-191/+23
| | | | | | | | | update the logic to process special char. Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13205 6f19259b-4bc3-4df7-8a09-765794883524
* Update function comments to remove confused description on PerformanceLib ↵lgao42012-04-174-8/+4
| | | | | | | | | EndPerformanceMeasurement API. Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13201 6f19259b-4bc3-4df7-8a09-765794883524
* Keep StdErr same logic initialization with ConOut, e.g. initialize ↵li-elvin2012-04-121-92/+72
| | | | | | | | | gST->StandardErrorHandle and gST->StdErr in Consplitter entrypoint. Signed-off-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Sun Rui <rui.sun@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13190 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg PciBusDxe and DuetPkg PciBusNoEnumerationDxe: Update ↵rsun32012-04-121-12/+32
| | | | | | | | | | ResetPowerManagementFeature() to clear 4 related R/W bits in the PMCSR register, leaving other bits preserved. Signed-off-by: Sun Rui <rui.sun@intel.com> Reviewed-by: Fan Jeff <jeff.fan@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13189 6f19259b-4bc3-4df7-8a09-765794883524
* EDK II Packages: Add Contributions.txt and License.txt filesjljusten2012-04-112-0/+215
| | | | | | | | | | | | | Contributions.txt documents the contribution process for all tianocore projects. The conents of Contributions.txt should match in all cases. License.txt is a per-project document showing the license terms used by that project. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13187 6f19259b-4bc3-4df7-8a09-765794883524
* Add more check for the bmp file to avoid access violation.ydong102012-04-111-1/+33
| | | | | | | | Signed-off-by: Dong Eric <eric.dong@intel.com> Reviewed-by: Gao Liming <liming.gao@intel.com> Reviewed-by: Zhang Chao <chao.b.zhang@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13185 6f19259b-4bc3-4df7-8a09-765794883524
* Enable Help string scroll when the help info can't show all at current page.ydong102012-04-114-13/+143
| | | | | | | Signed-off-by: Dong Eric <eric.dong@intel.com> Reviewed-by: Gao Liming <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13184 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg: Fix build warning on Xhci driver with XCode 32 tool chain.erictian2012-04-101-1/+2
| | | | | | | Signed-off-by: Tian Feng <feng.tian@intel.com> Reviewed-by: Sun Rui <rui.sun@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13177 6f19259b-4bc3-4df7-8a09-765794883524
* If setting variable in Runtime and there has been a same GUID and name ↵lzeng142012-03-301-14/+28
| | | | | | | | | variable existed in system without RT attribute, return EFI_WRITE_PROTECTED. Signed-off-by: lzeng14 Reviewed-by: tye git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13156 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg/UsbBusDxe:Correct typos in usb debug messageerictian2012-03-301-2/+2
| | | | | | | | Signed-off-by: erictian Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13155 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg/XhciDxe: Event Ring traverse algorithm enhancement to avoid ↵erictian2012-03-277-2279/+2338
| | | | | | | | | | that those completed async transfer events don't get handled in time and are flushed by newer coming events. Signed-off-by: erictian Reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13145 6f19259b-4bc3-4df7-8a09-765794883524
* Searching for files starts on an 8 byte aligned boundary after the end of ↵lzeng142012-03-272-5/+25
| | | | | | | | | the Extended Header if it exists. Signed-off-by: lzeng14 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13143 6f19259b-4bc3-4df7-8a09-765794883524
* Remove the useless performance logging code in BootScriptExecutorDxe driver ↵lzeng142012-03-193-114/+1
| | | | | | | | | and record S3 "ScriptExec" performance log before and after executing BootScriptExecutorEntrypoint in S3Reusme2Pei driver. Signed-off-by: lzeng14 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13108 6f19259b-4bc3-4df7-8a09-765794883524
* Introduce tow non-blocking task lists to AtaBus. One maintains the sub-task ↵qianouyang2012-03-166-468/+580
| | | | | | | | | which is related to running Ata Task and the other is for waiting Ata Task. And it will not pass any task to AtaAtapiPassThru until the previous Ata task has been finished or met error. Signed-off-by: qianouyang Reviewed-by: czhang46 erictian git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13105 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg/DebugPortDxe: Fixed the ordering of the EFI_DEBUGPORT_PROTOCOL ↵oliviermartin2012-03-151-1/+1
| | | | | | | | | | | | | | entries The DebugPortRead and DebugPortWrite entries are reversed in the initialization of the EFI_DEBUGPORT_PROTOCOL structure (compare to the EFI_DEBUGPORT_PROTOCOL definition and the UEFI spec). Signed-off-by: oliviermartin Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13102 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Introduced CPU Exception Handler Library to provide the CPU exception ↵vanjeff2012-03-1513-12/+157
| | | | | | | | | | | | handlers and add one NULL library instance. 2. Updated DXE Core, BootScriptExecutorDxe and CapsuleX64Pei to consume CPU Exception Library to setup the default CPU Exception handlers. Signed-off-by: vanjeff Reviewed-by: jyao1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13097 6f19259b-4bc3-4df7-8a09-765794883524
* Improve robustness when scanning PCI Option ROM.rsun32012-03-141-23/+47
| | | | | | | | Signed-off-by: rsun3 Reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13095 6f19259b-4bc3-4df7-8a09-765794883524
* Enhance the error handling.ydong102012-03-131-6/+19
| | | | | | | Signed-off-by: ydong10 Reviewed-by: lzeng14 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13094 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg: add support for ORICO PEUS3-2P carderictian2012-03-075-56/+53
| | | | | | | | | | | 1) Fix a bug on missing hub context evaluation operation. 2) If the usb keyboard device configuration has been set successfully, then don’t set configuration again. Signed-off-by: erictian Reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13087 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg: When media_change happens at Partition.Start(), the lower ↵erictian2012-03-061-1/+5
| | | | | | | | | | driver (ScsiDisk) should immediately return EFI_MEDIA_CHANGE but not EFI_SUCCESS. This way is used to avoid the interrupted Partition.Start() closes those opened protocols(DiskIo and DevicePath protocol) who are using by the re-entered partition driver at the same handle. Signed-off-by: erictian Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13082 6f19259b-4bc3-4df7-8a09-765794883524
* Update string offset and default offset from UINT16 to STRING_HEAD to match ↵lgao42012-03-062-12/+12
| | | | | | | | | the generated PCD database. Signed-off-by: lgao4 Reviewed-by: jliu66 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13081 6f19259b-4bc3-4df7-8a09-765794883524
* Fix the issue in PeiCore to support PDB file path without '\' or '.' character.lgao42012-02-291-9/+27
| | | | | | | Signed-off-by: lgao4 Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13069 6f19259b-4bc3-4df7-8a09-765794883524
* Add sample code to show how to register Browser HotKey by BrowserEx protocol.lgao42012-02-294-4/+35
| | | | | | | Signed-off-by: lgao4 Reviewed-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13068 6f19259b-4bc3-4df7-8a09-765794883524
* GraphicsConsole supports both UGA and GOP protocol, "UGA Console Driver" is ↵li-elvin2012-02-241-2/+2
| | | | | | | | | | changed to "Graphics Console Driver" in Component Name Protocol. Signed-off-by: li-elvin Reviewed-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13027 6f19259b-4bc3-4df7-8a09-765794883524
* Don't install FV protocol on the corrupt FV image. lgao42012-02-173-38/+21
| | | | | | | | Signed-off-by: lgao4 Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13020 6f19259b-4bc3-4df7-8a09-765794883524
* Enable PCD version check on PCD driver and PCD database.lgao42012-02-152-8/+20
| | | | | | | Signed-off-by: lgao4 Reviewed-by: jliu66 djboyer git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13015 6f19259b-4bc3-4df7-8a09-765794883524
* Add code check to avoid access violation.ydong102012-02-153-0/+3
| | | | | | | Signed-off-by: ydong10 Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13014 6f19259b-4bc3-4df7-8a09-765794883524
* Enhance BGRT driver to install BGRT table upon every ReadyToBoot eventczhang462012-02-141-40/+79
| | | | | | | | Signed-off: czhang46 Reviewed-by: jjin9, qianouyang git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13010 6f19259b-4bc3-4df7-8a09-765794883524
* Change StrLen from UINT8 to UINTN to fix the potential infinite loop issue.lzeng142012-02-031-2/+2
| | | | | | | Signed-off-by: lzeng14 Reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12982 6f19259b-4bc3-4df7-8a09-765794883524
* Add Missing invocations to VA_END() for VA_START().rsun32012-02-014-12/+34
| | | | | | | Signed-off-by: rsun3 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12979 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg PciBusDxe: Add typecast to eliminate possible "loss of ↵rsun32012-02-011-2/+2
| | | | | | | | precision" warning. Signed-off-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12978 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg PciBusDxe: Follow the P2P Bridge spec to detect if a P2P bridge ↵rsun32012-01-311-4/+15
| | | | | | | | | | supports 64-bit prefetchable base and limit addresses. Signed-off-by: rsun3 Reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12975 6f19259b-4bc3-4df7-8a09-765794883524
* Update the code to follow the spec when evaluate the expression.ydong102012-01-315-182/+274
| | | | | | | Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12973 6f19259b-4bc3-4df7-8a09-765794883524
* Enable nest for suppressif/grayoutif/diableif for form/question/option.ydong102012-01-319-127/+606
| | | | | | | Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12972 6f19259b-4bc3-4df7-8a09-765794883524
* correct license header.jyao12012-01-151-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12932 6f19259b-4bc3-4df7-8a09-765794883524
* Initialize LockBox.Attribute to 0 in SaveLockBox, or it will be random value.jyao12012-01-141-1/+2
| | | | | | | signed-off-by: jyao1 reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12931 6f19259b-4bc3-4df7-8a09-765794883524
* Correct definition to follow spec.ydong102012-01-122-4/+4
| | | | | | | Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12929 6f19259b-4bc3-4df7-8a09-765794883524
* Fix the issue in PeiCore that doesn’t handle Unix style file path of PDB file.lgao42012-01-041-2/+2
| | | | | | | Signed-off-by: lgao4 Reviewed-by:rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12906 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg PCI Bus Driver: Remove the workaround for the ↵rsun32011-12-221-18/+0
| | | | | | | | | | EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO and EFI_PCI_IO_ATTRIBUTE_VGA_IO attributes to follow the UEFI spec. Signed-off-by: rsun3 Reviewed-by: niruiyu Reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12891 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg: Fix a bug in GetNextTargetLun()/GetNextTarget() when two ↵erictian2011-12-211-2/+4
| | | | | | | | | cdroms attached Signed-off-by: erictian Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12890 6f19259b-4bc3-4df7-8a09-765794883524
* Remove the redundancy commas when converting the SASEx device path node to text.niruiyu2011-12-201-4/+4
| | | | | | | Signed-off-by: niruiyu Reviewed-by: jjin9 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12888 6f19259b-4bc3-4df7-8a09-765794883524
* Add more check to make sure the valid pointer be used. lgao42011-12-191-27/+29
| | | | | | | Signed-off-by: lgao4 Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12886 6f19259b-4bc3-4df7-8a09-765794883524
* Reconfigure the UdpRead instance if an error occurred in Dhcp, Discover and ↵sfu52011-12-161-5/+6
| | | | | | | | | | Mtftp process. Signed-off-by: sfu5 Reviewed-by: qianouyang Reviewed-by: tye git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12884 6f19259b-4bc3-4df7-8a09-765794883524
* Update PcdSetPtr() API to set the output buffer size to the max buffer size ↵lgao42011-12-152-0/+2
| | | | | | | | | when the input buffer size is larger than the max buffer size. This behavior follows API description. Signed-off-by: lgao4 Reviewed-by: jlin16 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12875 6f19259b-4bc3-4df7-8a09-765794883524
* Enhance DXE dispatcher logic to check the duplicated FV image bases on ↵lgao42011-12-154-27/+161
| | | | | | | | | FvHob2 and FvNameGuid per PI spec. Signed-off-by: lgao4 Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12874 6f19259b-4bc3-4df7-8a09-765794883524