Commit Graph

1221 Commits

Author SHA1 Message Date
jyao1 36d58153b1 UEFI table also need to be in ACPI NVS memory, because some data field
could be updated by OS present agent. For example, BufferPtrAddress in
SMM communication ACPI table.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11303 6f19259b-4bc3-4df7-8a09-765794883524
2011-02-11 06:40:20 +00:00
li-elvin 4e03ff80a1 If RSC_HANDLER_CALLBACK_ENTRY is allocated as boot service memory, the status code handler cannot work in runtime (after exit boot service). It should be allocated in runtime memory.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11274 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-26 07:57:13 +00:00
erictian d9303576cd fix word typo
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11273 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-26 04:30:22 +00:00
erictian 858939cbda fix arm gcc build error
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11272 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-26 04:24:54 +00:00
lgao4 f6cf5cf800 Support proportional Font and Font output flags.
1. Abstract the maximum baseline and character height in Proportional Font package as its baseline and line height, and use fixed height as base line and line height for simple font packages.
  2. Update logic to handle string without EFI_HII_OUT_FLAG_CLIP_CLEAN_Y flag when string height exceeds the line height, and handle the string without EFI_HII_OUT_FLAG_CLIP_CLEAN_X flag when string wide exceeds the screen wide.
  3. Calculate Origin point by adding BaseLine on Starting position, and calculate the left-top corner of character by Origin point and CELL information. 



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11270 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-24 04:58:45 +00:00
jljusten 40a699562a MdeModulePkg HiiDatabaseDxe: Fix build error on GCC 4.4
Remove extra left side (lvalue) type casting that generated
warnings with GCC 4.4.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11267 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-21 16:51:12 +00:00
ydong10 e33e34170f Enhance code to avoid build error.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11261 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-21 04:41:37 +00:00
ydong10 e5c861ac2e Fixed HiiSetString failed. Tracker NUM:204479
Reason:
    When call function HiiSetString to update the string which has no old string exist for one language, it will failed.
Solution:
    When no old string exist, update with new string.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11257 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-20 02:51:09 +00:00
gdong1 a02ab69ad1 Fixed 3 ECC errors.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11253 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-16 05:05:45 +00:00
gdong1 f3b80a8eab Add SMM FTW wrapper driver since non-SMM FTW protocol can be used by some consumers (Such as capsule update) when SMM FTW driver is applied.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11246 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-12 09:05:27 +00:00
gdong1 b59ad7519f Fix an K9 issue in variable driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11245 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-12 04:35:39 +00:00
gdong1 9ae0edbfa9 1. Invoke InstallConfigurationTable () in OnReadyToBoot() to avoid the new registered table may be NULL.
2. For SMM variable driver, it doesn’t need to mark the variable storage region of the FLASH as RUNTIME, so only keep it for non-SMM variable driver. 


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11212 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-31 04:31:42 +00:00
mdkinney abef1c7a09 Prevent a NULL device path from being passed into REPORT_STATUS_CODE_WITH_DEVICE_PATH by building child device path before using any of the Serial I/O Protocol services.
This guarantees that child device path is valid even if an error is returned from one of Serial I/O Protocol services in Start().

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11210 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-30 22:29:54 +00:00
ydong10 e24adb18e3 Enable number input for numeric, date and time opcode
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11208 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-30 07:26:56 +00:00
gdong1 a81b1409f9 Remove ASSERT here for the zero attributes means deleting preexisting variable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11199 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-24 07:03:25 +00:00
ydong10 e2100bfa65 1. Support inconsistent if opcode used in string/password opcode.
2. Add sample code of using inconsistent if opcode in string opcode.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11196 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-23 06:47:50 +00:00
ydong10 7b546f7480 1. support numeric item +/- action generate callback
2. when user change numeric opcode, call to refresh form.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11195 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-23 05:58:30 +00:00
gdong1 5456306fcf Fix a potential bug that SetVariable is invoked for NV variable prior to the installation of EFI_VARIABLE_WRITE_ARCH_PROTOCOL.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11190 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-22 07:33:13 +00:00
gdong1 32732a333a Update inappropriate comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11170 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-15 01:51:46 +00:00
gdong1 e90f27600f Remove the unnecessary package from VariableSmmRuntimeDxe.inf.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11157 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-12 10:18:47 +00:00
gdong1 5c7fa42941 Add typecast to remove warning with ICC.
VariableSmm.inf: Remove SmmLib 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11156 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-11 11:17:47 +00:00
jljusten 5c54e90515 MdeModulePkg VariableRuntimeDxe: Fix build for GCC44 toolchain
Add typecast to remove warning with GCC 4.4.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11155 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-10 23:57:42 +00:00
gdong1 8a2d49964e Add SMM Variable implementation.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11151 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-10 09:27:54 +00:00
lgao4 9ac0640d9c EFI_INVALID_PARAMETER should return when the input Block is NULL for ConfigRouting.ConfigToBlock().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11145 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-09 12:20:36 +00:00
xdu2 0b29a17e26 Add missing Handle parameter for UninstallMultipleProtocolInterfaces().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11144 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-09 08:57:16 +00:00
ydong10 3ddc4cf20f update the comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11140 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-09 02:51:30 +00:00
ydong10 c7f204dba4 Co-work with patch V11137 to refine the Hii menu.
1. Move the Mac address string from the form title to form title help for the driver Ipv4 and VLAN.
2. Change the menu show in the device manager from "Network Controller Information" to "ABC Information Sample".

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11138 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-09 02:18:44 +00:00
jljusten e1adae6084 DuetPkg, MdeModulePkg: Fix variable services hang with GCC44 X64
The C ellipses parameters are passed to functions differently
by default with GCC 4.4.  To make sure they are properly sent to
VariableGetBestLanguage, we add 'EFIAPI' to this function.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11119 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-06 06:04:38 +00:00
niruiyu 5c0337668f Fix a bug in GetLangFromSupportedLangCodes()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11091 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-25 07:04:04 +00:00
niruiyu 1623ce4aad Fix AutoUpdateLangVariable() logic to handle the case PlatformLang/Lang is set before PlatformLangCodes/LangCodes.
Pre-allocate pool for runtime phase.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11087 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-24 03:04:20 +00:00
lgao4 09b794172e Fix the bug that HiiConfigToBlock doesn't update BlockSize when Block is not large enough
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11085 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-23 11:13:22 +00:00
niruiyu 255a3f33bd Fix AutoUpdateLangVariable() logic to handle the case PlatformLang/Lang is set before PlatformLangCodes/LangCodes.
Pre-allocate pool for runtime phase.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11075 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-18 01:40:22 +00:00
lgao4 a605dfb387 Print Arrow for Goto button.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11042 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-11 09:44:51 +00:00
vanjeff 5469967137 The CurrentNumberOfxxxxx should be based on the device going away, and not the next (or empty) device in the list.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11000 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-03 05:46:11 +00:00
ydong10 1974777e21 Refine code to make code run more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10993 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-01 09:20:56 +00:00
lgao4 f7a14a9b99 Correct Data type conversion.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10981 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-26 03:28:44 +00:00
lgao4 6894561804 Update HiiDatabase->ExportPackageLists() service to support NULL HII handle per UEFI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10979 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-25 11:12:15 +00:00
lgao4 512122dc89 Reserve one column at left screen to be more visually.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10978 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-25 05:35:56 +00:00
lgao4 1a788cdd65 Fix the following three issues:
1. When question is grayout, its value is not gray. 
  2. When type Ui UP action, Repaint is not trigged when next MenuOption is above the TopOfScreen.
  3. When type Ui Down action, TopOfScreen is not calculated correctly when screen roll is required. 


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10977 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-25 05:32:17 +00:00
niruiyu f0384583af Use the correct length to copy KeyData.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10966 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-21 01:49:28 +00:00
qianouyang da7ff6981d Fix build issue in IPv4.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10964 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-20 12:19:06 +00:00
ydong10 fbe12b79ae Refine code to make code run more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10955 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-18 11:33:26 +00:00
andrewfish abd0c26488 Fix minor gcc build break.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10943 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-15 17:04:09 +00:00
qianouyang 705f53a9b4 Update IPsec.h file to follow approved ECR which will be collected into future UEFI 2.3 Specification after 2.3 errata B and future UEFI Specifications after 2.3. The changes mainly include:
1. Add EFI_IPSEC2_PROTOCOL
  2. Remove IPsec Authentication Algorithm Definition and IPsec Encryption Algorithm    
     Definition.
  3. Add EFI_IPSEC_SA_DATA2 data structure.
And also update IPv4 driver to call EFI_IPSEC2_PROTOCOL.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10941 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-15 05:40:41 +00:00
niruiyu 5b7183efb1 Update ConPlatform driver to support GOP driver which creates multiple children.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10936 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-14 04:49:31 +00:00
jljusten 815119f3d9 DuetPkg, MdeModulePkg: Fix several enum comparions
These comparisons were not comparing an enum variable
with a member of the same enum type.

GCC 4.5 generated a warning for these comparison
operations.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10932 6f19259b-4bc3-4df7-8a09-765794883524
2010-10-13 07:08:29 +00:00
ydong10 cd7bfc2c63 Refine code to make code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10880 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-16 04:51:25 +00:00
ydong10 c9325700d0 Refine soma code to make code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10877 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-15 07:48:11 +00:00
hhuan13 2e4c2a049b Improve PXE Over IPv4 performance:
1. Stop UdpWrite instance upon return from EfiPxeBcUdpWrite() to avoid mass pkgs enqueue to this useless instance in Udp layer.
2. Enhance Udp timeout logic to prevent the worst case happen, and set PxeUdp instance to 50ms to avoid enqueue mass pkgs in background.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10861 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-09 09:30:19 +00:00
rsun3 3163461872 Rename one file to follow the file naming convention.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10855 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-07 10:37:31 +00:00