Commit graph

854 commits

Author SHA1 Message Date
vanjeff
e7fa72eb43 Sync patch r13406 from main trunk.
Fixed build failed.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13420 6f19259b-4bc3-4df7-8a09-765794883524
2012-06-01 05:54:15 +00:00
vanjeff
6c13949e9c Sync patch r13375 from main trunk.
Add new interface GetVariable2 and GetEfiGlobalVariable2 to return more info. Also replace old interface with new one.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13405 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 08:31:35 +00:00
vanjeff
074d81db19 Sync patches r13368, r13377 and r13379 from main trunk.
1. Update DxeCore and FwVolDxe drivers to inherit authentication status for the FV image, if the image came from an FV image file and section in another firmware volume.
2. Record LoadImage perf log for LoadImageEx() and use NULL as Handle to record StartImage perf log when StartImage() fails.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13404 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 08:13:57 +00:00
vanjeff
34356a9f86 Sync patches r13356 and r13358 from main trunk.
1. Enhance the ConPlatform driver's matching algorithm to manage the console controller when it shares the same parent with a certain instance in the "ConOut".
2. Remove the check of signature because the code which looks for the input NotifyHandle in the internal linked list is enough.
3. Enhance ConSplitter to register hot keys for new connected consoles.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13398 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 06:40:37 +00:00
vanjeff
eeecee2beb Sync patch r13352 from main trunk.
Update the way to allocate high PMM, firstly try to allocate high PMM below 16MB, if it fails, allocate high PMM below 4GB.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13397 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 06:35:40 +00:00
vanjeff
2eb852269c Sync patch r13339 from main trunk.
Update PeiDxeDebugLibReportStatusCode library instance to print partial ASSERT message if ASSERT message is too big. 


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13396 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 06:30:26 +00:00
vanjeff
1778a0a4c7 Sync patches r13324 r13362, r13363 and r13366 from main trunk.
1. Clean ParentHandle field when image is loaded directly from the firmware's boot manager.
2. Refine logic about validate boot option and coding style.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13395 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-31 06:10:04 +00:00
vanjeff
1b5947fceb Sync patch r13322 from mail trunk.
Add logic to validate console variables when enter BDS.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13344 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-22 05:53:04 +00:00
vanjeff
7418cc4f60 Sync patch r13288 from mail trunk.
Fix memory leak issues.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13320 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-17 08:00:02 +00:00
vanjeff
4eb07d819f Sync patch r13275 from mail trunk.
Currently restoring PCI attributes are put in child uninstall logic, if one child is uninstalled, PCI attributes are restored, it will bring problem for stopping the next child. we do not restore the PCI attributes until all child handles are uninstalled.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13319 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-17 07:55:55 +00:00
vanjeff
fabb21c63b Sync patches r13159, r13185 and r13203 from mail trunk.
1. When transfer from Unicode to hex number, current code only consider the 0-9 case, not include the A-F case, now update code to consider all.
2. Add more check for the bmp file to avoid access violation.
3. Add code to check boot option variable before use it.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13272 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-04 05:08:19 +00:00
vanjeff
6bfa5e1ee9 Sync patch r13143 from mail trunk.
Searching for files starts on an 8 byte aligned boundary after the end of the Extended Header if it exists.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13271 6f19259b-4bc3-4df7-8a09-765794883524
2012-05-03 07:23:35 +00:00
vanjeff
124937d6ca Sync patch r13095 from mail trunk.
Improve robustness when scanning PCI Option ROM.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13174 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-09 05:19:54 +00:00
vanjeff
de98daa94e Sync patch r13154 from mail trunk.
Update code to follow coding style.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13173 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-09 03:23:44 +00:00
vanjeff
6e4f3ef602 Sync patch r13074 from mail trunk.
When CSM uses EFI_SEGMENT and EFI_OFFSET to call CSM16 function, some CSM16 use es:[offset + 0xabcd] to get data passed from CSM32, offset + 0xabcd could exceed 0xFFFF which is invalid in real mode. So added NORMALIZE_EFI_SEGMENT and  NORMALIZE_EFI_OFFSET to keep offset as small as possible to avoid this issue during CSM16 function call.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13171 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-09 01:54:25 +00:00
vanjeff
ff8ee594e1 Sync patch r12927 and r12928 from mail trunk.
Add check when get boot option variable to avoid system hang.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13169 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-06 08:33:22 +00:00
vanjeff
06418a907d Sync patch r13116 from mail trunk.
Add BootlogoOnly feature in BDS for BGRT.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13151 6f19259b-4bc3-4df7-8a09-765794883524
2012-03-29 03:50:04 +00:00
vanjeff
36cef654a5 Sync patch r13094 and r13096 from mail trunk.
Enhance the error handling.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13149 6f19259b-4bc3-4df7-8a09-765794883524
2012-03-29 03:38:08 +00:00
vanjeff
28fb1f65bc Sync patches r12979 and r13025 from mail trunk.
1. Add Missing invocations to VA_END() for VA_START().
2. Add a new macro VA_COPY for variable argument support. Fix a bug in the UefiLib instance that there is a non portable assumption that Marker is copied when passed to a function.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13118 6f19259b-4bc3-4df7-8a09-765794883524
2012-03-23 05:54:41 +00:00
ydong10
98ba35a40c Patch includes:
1.Update question value after BDS change code to avoid save invalid data.
2.Fix a corner case bug that may cause unexpected popup when changing the legacy device order.
Signed-off-by: ydong10
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12892 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-22 06:31:40 +00:00
jyao1
71824dd8db InstallAcpiTable() - Do not update the checksum in the passed in buffer – the buffer is an IN buffer and should be treated as such.
signed-off-by: jyao1
reviewed-by: rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12869 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-15 05:34:57 +00:00
ydong10
8472407740 Update for IntelFrameworkModulePkg.
Per UEFI spec, on CallBack action EFI_BROWSER_ACTION_CHANGING, the return value of ActionRequest will be ignored, but on CallBack action EFI_BROWSER_ACTION_CHANGED, the return value of ActionRequest will be used. 
But, EDKII browser still processes the got ActionRequest. And, all HII drivers in EDKII project also returns their expected ActionRequest value on action EFI_BROWSER_ACTION_CHANGING. 
Now update the browser to follow the spec, and update all core Hii drivers to keep old working modal.

Signed-off-by: ydong10
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12866 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-15 02:56:46 +00:00
vanjeff
660b39c75c Update IntelFrameworkModulePkg version: 0.91->0.92
Signed-off-by: vanjeff
Reviewed-by: hhtian

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12853 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-14 02:13:01 +00:00
vanjeff
20f6ac147c Update the check condition to allows 64-bit operation's data buffer not to be 64-bit aligned on IA32 system.
Signed-off-by: vanjeff
Reviewed-by: mdkinney




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12809 6f19259b-4bc3-4df7-8a09-765794883524
2011-12-01 06:12:28 +00:00
lgao4
a661e27f7a Update code to pass build on VS2008 with /Od compiler option.
Signed-off-by: lgao4
Reviewed-by: rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12791 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-28 06:14:31 +00:00
lzeng14
5eddabfc66 1. According to PI errata 0000840 and PI 1.2c Vol 3 3.2.3, remove description rows that start with a Required Alignment (bytes) of 2, 4, and 8.
2. In PeiFfsFvPpiGetFileInfo(), FileHeader->Attributes needs to be converted to EFI_FV_FILE_ATTRIBUTES from EFI_FFS_FILE_ATTRIBUTES before it is assigned to FileInfo->FileAttributes.
3. Set EFI_FV_FILE_ATTRIB_FIXED and EFI_FV_FILE_ATTRIB_MEMORY_MAPPED bits for EFI_FV_FILE_ATTRIBUTES based on the FFS file and FV image.

Signed-off-by: lzeng14
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12776 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-25 01:56:58 +00:00
li-elvin
32bc1227a5 Update console mode setup to use PcdSetupConOutColumn and PcdSetupConOutRow which are specially for BIOS setup.
Signed-off-by: li-elvin
Reviewed-by: lgao4


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12770 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-24 01:01:48 +00:00
ydong10
eb5e7d3e7a Update code to follow coding style. Mainly change about:
1. Remove duplicate lib
2. Refine the name for enum member.
Signed-off-by: ydong10
Reviewed-by: lgao4
Reviewed-by: gdong1
Reviewed-by: vanjeff


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12767 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-23 09:20:57 +00:00
li-elvin
ace74c67ba Use PCD to customize if ps2 mouse and mouse pointer device do full reset.
Signed-off-by: li-elvin
Reviewed-by: lgao4


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12755 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-21 11:16:39 +00:00
lzeng14
49975acb39 According to PI errata 0000654 and 000811, we need use 0xFFFE to instead of 0 for EFI_SMBIOS_PROTOCOL.Add() SmbiosHandle parameter to assign a unique handle to the SMBIOS record, and for EFI_SMBIOS_PROTOCOL.GetNext() SmbiosHandle parameter to get the first matched SMBIOS handle or indicate no more SMBIOS record.
Signed-off-by: lzeng14
Reviewed-by: li-elvin

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12750 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-21 08:53:54 +00:00
li-elvin
3512efa9b2 CSM is updated to remove RaiseTPL (TPL_HIGH_LEVEL) and disable 2 known UEFI interrupts instead. This is needed to process HPET timer interrupt before going into real mode.
Signed-off-by: li-elvin
Reviewed-by: vanjeff

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12701 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-15 07:59:21 +00:00
li-elvin
801401877e Fix incorrect pointer check.
Signed-off-by: li-elvin
Reviewed-by: ydong10

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12694 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-15 01:14:44 +00:00
li-elvin
72861c22e5 Introduce video resolution and text mode PCDs for BIOS setup in BDS module. User can use these PCDs to customize video resolution and text mode for setup when launching BIOS setup.
Signed-off-by: li-elvin
Reviewed-by: niruiyu


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12671 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-08 07:34:56 +00:00
niruiyu
59b9d73e5f Check the return status of booting against EFI_SUCCESS instead of using EFI_ERROR() macro to catch the warning status.
Signed-off-by: niruiyu
Reviewed-by: li-elvin

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12668 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-08 03:10:36 +00:00
xdu2
6ba8465fc3 IntelFrameworkModulePkg-GenericBdsLib: Add type cast for conversion from INTN to UINTN.
Signed-off-by: xdu2
Reviewed-by: ydong10

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12665 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-07 03:35:21 +00:00
xdu2
a637802c2f IntelFrameworkModulePkg: Update GenericBdsLib to use BootLogo protocol to report logo information after logo is drawn to screen; update BdsDxe to notify logo is corrupted when user is going to enter setup.
Signed-off-by: xdu2
Reviewed-by: mdkinney
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12664 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-04 08:28:09 +00:00
lzeng14
c4487989c8 Correct the logic to check EFI_FV2_WRITE_STATUS.
Signed-off-by: lzeng14
Reviewed-by: ZhangCaoIntel

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12661 6f19259b-4bc3-4df7-8a09-765794883524
2011-11-04 06:26:26 +00:00
jljusten
310580cf8a IntelFrameworkModulePkg: Remove variables that are set, but not used
GCC 4.6 generates a warning when a variable is set,
but never used.

Signed-off-by: jljusten
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12616 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-31 15:57:25 +00:00
li-elvin
675253b4a4 Set video resolution to highest when PcdVideoHorizontalResolution or PcdVideoVerticalResolution are set to 0x0.
Signed-off-by: li-elvin
Reviewed-by: niruiyu, hhtian


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12596 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-28 08:25:18 +00:00
lzeng14
23491d5cc2 Add core FFS3 support, FwVolDxe and SectionExtraction.
Signed-off-by: lzeng14
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12585 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-27 10:46:50 +00:00
lzeng14
30f001ca5f Add core FFS3 support, ExtractGuidedSectionLib/GuidedSectionExtractionLib/PiFirmwareFile.h.
Signed-off-by: lzeng14
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12582 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-27 08:45:50 +00:00
niruiyu
153a2bae71 Check the device path protocol before opening the PciIo BY_DRIVER.
Signed-off-by: niruiyu
Reviewed-by: jyao1

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12579 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-27 05:24:06 +00:00
niruiyu
9891f791b0 Change the SimpleTextInEx implementation to return CTRL+C when CTRL and C are both pressed; SimpleTextIn implementation still returns CTRL+3.
Signed-off-by: niruiyu
Reviewed-by: qianouyang

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12562 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-25 06:09:36 +00:00
niruiyu
bf85c825ce Fix BDS bug to signal ReadyToBoot event before loading the boot option.
Signed-off-by: niruiyu
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12557 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-24 03:13:24 +00:00
li-elvin
b17f22f50b CSM should firstly set timer to enable state at first, then RestoreTpl is called.
Signed-off-by: li-elvin
Reviewed-by: rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12555 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-21 08:45:07 +00:00
niruiyu
55d4edfbb3 Change the Keyboard thunk driver to remove DevicePath reference.
Signed-off-by: niruiyu
Reviewed-by: jyao1

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12548 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-19 03:21:15 +00:00
li-elvin
26a74a36c1 Use a local variable and assign 0 to it, then use it as legacy interrupt table base address.
Signed-off-by: li-elvin
Reviewed-by: mdkinney, ydong10

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12547 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-19 00:45:13 +00:00
li-elvin
091bb7138b InstallOpROM in CSM driver could be enhanced to start video when RomImage is passed in directly.
Signed-off-by: li-elvin
Reviewed-by: niruiyu


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12521 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-10 07:54:47 +00:00
li-elvin
befbc4f3fb Use PCD for PMM size and EndOpromShadowAddress to remove hard code value in CSM module.
Signed-off-by: li-elvin
Reviewed-by: jyao1

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12519 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-10 01:43:13 +00:00
qianouyang
5829afe3e4 1. Add Partial Keystroke Support in Ps2Kb drivers. See the Uefi2.3.1a chapter 11.2
2. Fix the bug of "In Ps2Keyboard the CAPs LOCK's LED should NOT be light when user press the SysReq key".
3. Fix the bug of "The PS2Keyboard driver outputs wrong EFI_INPUT_KEY value for PrintScr/SysRq keystroke"

Signed-off-by: qianouyang
Reviewed-by: niruiyu vanjeff




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12495 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-30 07:29:42 +00:00