summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
Commit message (Collapse)AuthorAgeFilesLines
...
* Use Memory Allocation Library instance for modules of type DXE_SMM_DRIVERmdkinney2010-02-166-34/+17
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10014 6f19259b-4bc3-4df7-8a09-765794883524
* Use Memory Allocation Library instance for modules of type DXE_SMM_DRIVERmdkinney2010-02-162-14/+9
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10013 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up HOB debug printsandrewfish2010-02-161-3/+3
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10012 6f19259b-4bc3-4df7-8a09-765794883524
* Fix crash in UnixPkg and BeagleBoard caused by gSmmBase2 getting added to ↵andrewfish2010-02-161-3/+3
| | | | | | the now incorectly named mARchProtocols list. CoreDispatchMissingArchProtocols() did to check to see if the element was an AP (not all are now). Also Missing entry was not bounds checked, it was assumed to be <= Index witch is no longer true. So in both UnixPkg and BeagleBoard the loop was blowing past the end and garbage data caused page faults. Also add m prefix to global. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10011 6f19259b-4bc3-4df7-8a09-765794883524
* Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVERmdkinney2010-02-141-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10006 6f19259b-4bc3-4df7-8a09-765794883524
* Update DXE Core to be compatible with PI 1.2 SMM Drivers.mdkinney2010-02-135-23/+44
| | | | | | | | | | | | PI 1.2 SMM Drivers are allowed to call UEFI/DXE services and Protocols from the entry point of the PI 1.2 SMM Driver. These UEFI/DXE services and Protocols may directly or indirectly calls the UEFI Boot Services RaiseTPL() and RestoreTPL(). These UEFI Boot Services use the CPU Architectural Protocol to enable interrupts if the TPL level is below TPL_HIGH_LEVEL and enable interrupts of the TPL is at TPL_HIGH_LEVEL. Interrupts should be masked while executing SMM drivers, so if a direct or indirect call to the UEFI Boot Service RestoreTPL() would enable interrupts, then an interrupt could be incorrectly delivered in SMM context. The solution is for the DXE Core to register for the PI 1.2 SMM Base2 Protocol. If that protocol is present in the platform, then the DXE Core can use the SMM Base 2 Protocol's InSmm() function to determine if the platform is currently executing in SMM content. If the current context is in SMM, then do not allow any requests to be forwarded to the CPU Architecture Protocol to enable interrupts. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9997 6f19259b-4bc3-4df7-8a09-765794883524
* Update SnpDxe to support dynamic media detect.xdu22010-02-123-212/+241
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9994 6f19259b-4bc3-4df7-8a09-765794883524
* Support HII VOID* dynamic/dynamicEx type PCD.klu22010-02-112-29/+66
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9990 6f19259b-4bc3-4df7-8a09-765794883524
* Update HiiDataBase to make sure that the installed StringPackages contains ↵lgao42010-02-111-1/+87
| | | | | | the same number string ID. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9989 6f19259b-4bc3-4df7-8a09-765794883524
* The fix is for EFI Linux capsule test case can not run.li-elvin2010-02-111-9/+9
| | | | | | It should use runtime library EfiSetVariable, gRT is not converted to virtual address which cause SetVariable failure in EFI Linux. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9986 6f19259b-4bc3-4df7-8a09-765794883524
* GraphicsOutputBlt() need judge parameter klu22010-02-111-1/+5
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9985 6f19259b-4bc3-4df7-8a09-765794883524
* Fix the issue that unknown format FV in Fvhob is installed for FvInfoPpi ↵klu22010-02-111-1/+22
| | | | | | more than one time. The fixing is search dispatched Fv database and cached unknown Fv information for all Fv in FvHob, if Fv has been identified by PeiCore, then no need install FvInfoPpi for it again. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9984 6f19259b-4bc3-4df7-8a09-765794883524
* Pass the correct TokenNumber into a CallbackOnSet notification function. ↵mdkinney2010-02-111-28/+22
| | | | | | | | | | | | | The value being passed in was off by 1. This would not normally cause an issue because the correct notification function was being called. There is only an issue if the same notification function is being used for multiple tokens, and the notification function needs to use the TokenNumber parameter to determine which token setting caused the callback function to be called. Update the logic so the CallbackOnSet notification functions are not called with the internal PCD database lock in the acquired state. This allows other PCD Get/Set operations to be performed from within a CallbackOnSet notification. Update logic so the PCD database lock is not left in the acquired state when SetWorker() returns EFI_INVALID_PARAMETER. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9981 6f19259b-4bc3-4df7-8a09-765794883524
* Pass the correct TokenNumber into a CallbackOnSet notification function. ↵mdkinney2010-02-111-1/+1
| | | | | | | | | The value being passed in was off by 1. This would not normally cause an issue because the correct notification function was being called. There is only an issue if the same notification function is being used for multiple tokens, and the notification function needs to use the TokenNumber parameter to determine which token setting caused the callback function to be called. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9980 6f19259b-4bc3-4df7-8a09-765794883524
* 1. free those inserted NsKeyNode resource when releasing SetKeyBoardLayout ↵erictian2010-02-113-6/+8
| | | | | | | | event. 2. cleanup HiiDataBaseDxe to directly use gEfiHiiKeyBoardLayoutGuid which is used as the guid of event group. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9978 6f19259b-4bc3-4df7-8a09-765794883524
* Coding style fix and minor improvements.rsun32010-02-1123-420/+113
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9977 6f19259b-4bc3-4df7-8a09-765794883524
* Add example of Name/Value pair var store to DriverSamplelgao42010-02-115-9/+327
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9975 6f19259b-4bc3-4df7-8a09-765794883524
* a)Save and disable CPU interrupt before calling AsmWriteIdtr().vanjeff2010-02-101-19/+31
| | | | | | | b)Restore CPU interrupt status after callng AsmWriteIdtr(). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9965 6f19259b-4bc3-4df7-8a09-765794883524
* revise the debug message to add 0x in front of the HEX number for consistencyjchen202010-02-108-29/+27
| | | | | | replace FixedPcdGetXX with PcdGetXX to access PcdLoadModuleAtFixAddressEnable git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9964 6f19259b-4bc3-4df7-8a09-765794883524
* Fix ICC build break by do data conversion.lgao42010-02-101-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9963 6f19259b-4bc3-4df7-8a09-765794883524
* change the GetPcd64 to FixedGetPcd64 to pass ECC jchen202010-02-091-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9957 6f19259b-4bc3-4df7-8a09-765794883524
* Update HiiString Protocol and HiiSetString Api in HiiLiblgao42010-02-094-90/+191
| | | | | | | 1. Reserve the unique string identifier for all languages in the package list. 2. Track MaxStringId to do the simple check for the requested StringId > MaxStringId, which can improve performance. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9954 6f19259b-4bc3-4df7-8a09-765794883524
* Update MdeModulePkg to not use EFI_SPECIFICATION_VERSION and ↵qhuang82010-02-084-15/+11
| | | | | | PI_SPECIFICATION_VERSION in source code. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9951 6f19259b-4bc3-4df7-8a09-765794883524
* format uniform: move tab to blank.erictian2010-02-081-43/+43
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9949 6f19259b-4bc3-4df7-8a09-765794883524
* Remove DEBUG_LOAD for InstallProtocolInterface() to align with PPI ↵qhuang82010-02-081-5/+5
| | | | | | installation debug message in PeiCore. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9945 6f19259b-4bc3-4df7-8a09-765794883524
* modified to pass the VS2003 buildjchen202010-02-081-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9944 6f19259b-4bc3-4df7-8a09-765794883524
* modified to pass the ICC buildjchen202010-02-051-6/+6
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9939 6f19259b-4bc3-4df7-8a09-765794883524
* revise the comments stylejchen202010-02-051-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9938 6f19259b-4bc3-4df7-8a09-765794883524
* Enable the Load Module At fixed Address feature jchen202010-02-0512-61/+972
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9937 6f19259b-4bc3-4df7-8a09-765794883524
* Add some security check.xdu22010-02-054-4/+7
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9934 6f19259b-4bc3-4df7-8a09-765794883524
* Enable PEI core to differentiate PEIMs in performance log by passing PEIM ↵jgong52010-02-041-4/+4
| | | | | | file handles git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9927 6f19259b-4bc3-4df7-8a09-765794883524
* For network dynamic media support:xdu22010-02-0316-62/+449
| | | | | | | | | | 1. add library function NetLibDetectMedia to NetLib for media detection 2. update MnpDxe to periodically poll for media status update and check for media status before packet transmit 3. update Ip4Dxe to return ModeData using Mnp->GetModeData() 4. update IScsiDxe to check for media status before try to do DHCP and session login 5. update UefiPxeBcDxe to check for media status before PXE start git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9919 6f19259b-4bc3-4df7-8a09-765794883524
* 1. add error handling in case DHCP success but boot request failxdu22010-02-022-0/+8
| | | | | | 2. add UnloadImage to ease debug git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9910 6f19259b-4bc3-4df7-8a09-765794883524
* Add support to original EFI_IFR_FORM_SET in initial UEFI2.1 spec. Now, it ↵lgao42010-02-022-16/+23
| | | | | | has been updated to new one in UEFI2.1D. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9906 6f19259b-4bc3-4df7-8a09-765794883524
* when remaining device path is not NULL, check if it's the device managed by ↵erictian2010-02-021-2/+5
| | | | | | bus driver. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9904 6f19259b-4bc3-4df7-8a09-765794883524
* MdeModulePkg\Library\DxeNetLib: Update the NetLibStrToIp6andPrefix() to ↵qianouyang2010-02-011-2/+6
| | | | | | return different values for two situations - a. The Input string doesn’t contain the prefix length; b. The prefix length contains prefix length and the prefix length is zero. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9898 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Update the maximum length to 224 in ISCSI_CONFIG_IFR_NVDATA() to store ↵tye12010-02-013-8/+9
| | | | | | | | | | 223 byte name plus one NULL-terminator. 2. Update the minimum length to 4 in VFR file for target/initiator name for requiring prefix “iqn.” 3. Fix the 64bit unalignment exception at IPF due to Rsdt is 32 bit alignment but OemTableId field of Rsdt is UINT64 type. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9896 6f19259b-4bc3-4df7-8a09-765794883524
* Get MaxPacketSize from IP4 mode data and reduce the head size of UDP and ↵ljin62010-02-014-11/+29
| | | | | | MTFTP, and take it as BlockSize to download. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9894 6f19259b-4bc3-4df7-8a09-765794883524
* Remove micro definition for smbios version, instead we use a PCD value to ↵li-elvin2010-02-014-13/+18
| | | | | | let user customize smbios version better. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9893 6f19259b-4bc3-4df7-8a09-765794883524
* Remove unnecessary use of FixedPcdxxx() functions and [FixedPcd] INF ↵mdkinney2010-01-2914-90/+85
| | | | | | | | | | sections. These should only be used for PCDs that are used to pre-init global variables, pre-init global structures, or size arrays. Do some minor clean ups to INF files git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9868 6f19259b-4bc3-4df7-8a09-765794883524
* Enhanced TerminalDxe module not to install Simple Text(ex) input protocol ↵vanjeff2010-01-282-460/+687
| | | | | | and Simple Text output protocol, if the device path to the handle is not present in the ConIn and ConOut/ConErr environment variables. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9852 6f19259b-4bc3-4df7-8a09-765794883524
* Remove redundant arch definition in UefiPxeBcDxe.ljin62010-01-286-163/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9851 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Add comments in INF file to describe limitation.xli242010-01-282-15/+11
| | | | | | 2. Return EFI_UNSUPPORTED where reasonable. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9850 6f19259b-4bc3-4df7-8a09-765794883524
* Remove EBC arch support for UefiPxeBcDxe.ljin62010-01-281-3/+5
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9849 6f19259b-4bc3-4df7-8a09-765794883524
* Fixed the issue of duplicated SYS_ARCH in MdeModulePkg\UefiPxeBcDxe.ljin62010-01-283-24/+8
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9848 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Fix the potential issue in NetbufGetFragment() when Last is zero in Line 53.tye12010-01-271-7/+4
| | | | | | 2. Comments update. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9837 6f19259b-4bc3-4df7-8a09-765794883524
* Remove reference to PCDs of status code value. Use macros introduced in ↵xli242010-01-271-23/+1
| | | | | | PI1.2 instead. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9834 6f19259b-4bc3-4df7-8a09-765794883524
* Remove reference to PCDs of status code value. Use macros introduced in ↵xli242010-01-2727-114/+60
| | | | | | PI1.2 instead. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9833 6f19259b-4bc3-4df7-8a09-765794883524
* Print the warning information for the image without relocation only when ↵lgao42010-01-261-2/+2
| | | | | | load it into memory. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9822 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up AtaBus driver to not depend on PI IdeControllerInit Protocol ↵qhuang82010-01-262-11/+10
| | | | | | definitions git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9821 6f19259b-4bc3-4df7-8a09-765794883524