vanjeff [Mon, 31 Oct 2011 06:45:56 +0000 (06:45 +0000)]
Roll back the change on GetMemorySpaceAttributeFromMtrrType()'s parameter type, from MTRR_MEMORY_CACHE_TYPE to UINT8 since MtrrAttributes may be the value not belongs to MTRR_MEMORY_CACHE_TYPE.
ydong10 [Mon, 31 Oct 2011 03:33:55 +0000 (03:33 +0000)]
When browser was requested to go to another formset, it also needs to update the hiihandle in Selection structure. If not update this handle, later when call function GetIfrBinaryData to get binary ifr data will return failed.
Also add sample code to use it.
lgao4 [Sat, 29 Oct 2011 07:01:23 +0000 (07:01 +0000)]
Correct file path separator to Linux style for all OS. Signed-off-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12603 6f19259b-4bc3-4df7-8a09-765794883524
xdu2 [Fri, 28 Oct 2011 09:55:09 +0000 (09:55 +0000)]
SecurityPkg: Update VariableAuthenticated driver with following changes:
1. Remove memory allocation code in runtime.
2. Exclude NULL terminator in VariableName for serialization data in time-based variable authentication.
3. Add support for enroll PK with WRITE_ACCESS attribute.
4. Initialize SetupMode variable with correct NV attribute.
5. Add support for APPEND_WRITE attribute for non-existing Variable.
6. Clear KEK, DB and DBX as well as PK when user request to clear platform keys.
7. Check duplicated EFI_SIGNATURE_DATA for Variable formatted as EFI_SIGNATURE_LIST when APPEND_WRITE attribute is set.
8. Not change SecureBoot Variable in runtime, only update it in boot time since this Variable indicates firmware operating mode.
9. Save time stamp of PK when PK is set with TIME_BASED_WRITE_ACCESS attribute in setup mode.
10. Update to use PcdMaxVariableSize instead of PcdMaxAppendVariableSize for append operation.
xdu2 [Fri, 28 Oct 2011 09:54:08 +0000 (09:54 +0000)]
SecurityPkg: Update DxeImageVerificationLib with following changes:
1. Update to check image digest against dbx before execute it.
2. Update to support revoke certificate.
3. Update to support enroll unsigned PE image's Hash to allowed database (db). (Note: Unsigned Image's Hash is calculated in the same way with authenticode, the algorithm is assumed to be SHA256.)
li-elvin [Fri, 28 Oct 2011 08:23:37 +0000 (08:23 +0000)]
Remove hard code video resolution in C code and use PCD PcdVideoHorizontalResolution/PcdVideoVerticalResolution for customization. And when PcdConOutRow/PcdConOutColumn and PcdVideoHorizontalResolution/PcdVideoVerticalResolution are all set to 0, the console will be max video resolution and max text mode.
lgao4 [Fri, 28 Oct 2011 08:18:57 +0000 (08:18 +0000)]
Correct key word of define macro to DEFINE per Build spec. Signed-off-by: lgao4 Reviewed-by: gikidy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12594 6f19259b-4bc3-4df7-8a09-765794883524
tye1 [Fri, 28 Oct 2011 07:41:26 +0000 (07:41 +0000)]
1. Fix build break issue for NOOPT target.
2. Fix potential system hang issue in X509_STORE_CTX_cleanup.
3. Fix potential overflow when convert UINTN to INT.
4. Update Pkcs7Sign() to output stripped PKCS#7 SignedData.
5. Update Pkcs7Verify() to support both wrapped/stripped PKCS#7 SignedData.
vanjeff [Fri, 28 Oct 2011 06:01:55 +0000 (06:01 +0000)]
1. Introduce the API MtrrGetDefaultMemoryType () in Mtrr Library.
2. Invoke MtrrGetDefaultMemoryType() to get the default memory type instead of the hard code value in module.
3. Add go though for UC attributes.
ydong10 [Thu, 27 Oct 2011 01:10:18 +0000 (01:10 +0000)]
Initialize the parameter mUnicodeCollation before use it to avoid system hang. Signed-off-by: ydong10 Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12577 6f19259b-4bc3-4df7-8a09-765794883524
lgao4 [Thu, 27 Oct 2011 00:43:13 +0000 (00:43 +0000)]
Update Base type SecPeiDxeTimerLibUefiCpu to support all module type. Signed-off-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12576 6f19259b-4bc3-4df7-8a09-765794883524
qianouyang [Wed, 26 Oct 2011 09:36:55 +0000 (09:36 +0000)]
Fix a bug which cause a CRTL, ALT, or SHIFT is pressed on the GOP console for NT32, it inserts a ' 'character character.
Root cause is that the parameter of UnicodeStr doesn’t initialize.
ydong10 [Tue, 25 Oct 2011 09:00:23 +0000 (09:00 +0000)]
Fix error: Multiline option info only shows the first line error, should shows the full info. Signed-off-by: ydong10 Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12566 6f19259b-4bc3-4df7-8a09-765794883524
niruiyu [Mon, 24 Oct 2011 06:57:57 +0000 (06:57 +0000)]
Enable the SE_TIME_ZONE_NAME privilege for NT32 to fix SetTime function test running in Win7
Fix the GetTime implementation to return the correct Daylight value.
lgao4 [Mon, 24 Oct 2011 04:37:33 +0000 (04:37 +0000)]
Update Base type SecPeiDxeTimerLibCpu to support all module type. Signed-off-by: lgao4 Reviewed-by: jlin16
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12558 6f19259b-4bc3-4df7-8a09-765794883524
erictian [Wed, 19 Oct 2011 05:15:23 +0000 (05:15 +0000)]
If the data buffer described by InDataBuffer/OutDataBuffer and InTransferLength/OutTransferLength is too big to be transferred, EFI_BAD_BUFFER_SIZE should be returned
niruiyu [Fri, 14 Oct 2011 07:46:15 +0000 (07:46 +0000)]
Fix the clang compilation failure to handle all the values in a case statement for enum type value.
Signed-off-by: Andrew Fish Reviewed-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12539 6f19259b-4bc3-4df7-8a09-765794883524
jcarsey [Thu, 13 Oct 2011 23:05:08 +0000 (23:05 +0000)]
ShellPkg: Set CRC value whenever changing a system table.
This adds a function (from DxeMain.c) that calculates and sets a CRC into a system table header and then calls the function in the 2 places where the shell changes the system table.
ydong10 [Thu, 13 Oct 2011 02:37:35 +0000 (02:37 +0000)]
Check the pointer before use it to avoid potential access violation. Signed-off-by: ydong10 Reviewed-by: jcarsey
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12533 6f19259b-4bc3-4df7-8a09-765794883524
gdong1 [Wed, 12 Oct 2011 03:38:19 +0000 (03:38 +0000)]
Update UID drivers to align with latest UEFI spec 2.3.1.
Directly use ImageHandle instead of &ImageHandle for wrong usage in TCG physical presence library.
niruiyu [Wed, 12 Oct 2011 02:45:02 +0000 (02:45 +0000)]
Grub4Dos copies the BPB of the first partition to the MBR. If the DriverBindingStart() of the Fat driver gets run before that of Partition driver only the first partition can be recognized.
Let the driver binding version of Partition driver be higher than that of Fat driver to make sure the DriverBindingStart() of the Partition driver gets run before that of Fat driver so that all the partitions can be recognized.
li-elvin [Tue, 11 Oct 2011 03:45:24 +0000 (03:45 +0000)]
AsciiSPrint returns The number of ASCII characters in the produced output buffer not including the Null-terminator, but SerialStatusCodeWorker has bug which overwrites the last character, which causes there is a missing character in serial log output. The fix is to resolve this issue.
li-elvin [Mon, 10 Oct 2011 07:54:47 +0000 (07:54 +0000)]
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
andrewfish [Sat, 8 Oct 2011 21:00:13 +0000 (21:00 +0000)]
Add a GUIDed HOB to init Debug Print error level earlier in DXE. Add NULL PEIM library to init HOB.
Debug Print Error level can be controled by an EFI variable. Update the DXE version of the library to use a HOB if the variable services are not yet availilbe. This allows the variable to be used early in the DXE phase.
niruiyu [Sat, 8 Oct 2011 02:09:50 +0000 (02:09 +0000)]
MdeModulePkg: Fix TerminalDxe FIFO Data Loss
Fixes a Terminal FIFO full issue that caused data to be lost. The Unicode and EFI Key FIFOs are now checked to make sure they have spaces before pushing another entry.
lpleahy [Tue, 4 Oct 2011 18:31:40 +0000 (18:31 +0000)]
Update applications to display correct error for gethostbyaddr and gethostbyname. These APIs use h_errno instead of errno, see documentation at: http://www.linuxhowtos.org/manpages/3p/gethostbyaddr.htm