efi/edk2/.git
11 years ago1. Update GetStringWorker() of HiiDataBaseDxe to only search in other language and...
lgao4 [Mon, 22 Feb 2010 06:30:41 +0000 (06:30 +0000)]
1. Update GetStringWorker() of HiiDataBaseDxe to only search in other language and not update the StringSize to avoid GetString() buffer overflow.
2. Update SetupBrowser to correctly handle ordered list option.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10041 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoTPL of Pcd Dxe driver was changed to TPL_CALLBACK from TPL_NOTIFY to follow UEFI...
niruiyu [Mon, 22 Feb 2010 06:05:11 +0000 (06:05 +0000)]
TPL of Pcd Dxe driver was changed to TPL_CALLBACK from TPL_NOTIFY to follow UEFI spec that caller of variable interface should run at TPL <= TPL_CALLBACK.
The change is to enable PcdsDynamicHii in Duet platform. Duet's variable driver should run at TPL <= TPL_CALLBACK so Pcd Dxe driver should run at TPL <= TPL_CALLBACK.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10040 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoEnable BootTimeOut and ConsoleMode (80x25/100x30) setting save/restore in Duet Setup.
niruiyu [Mon, 22 Feb 2010 06:03:08 +0000 (06:03 +0000)]
Enable BootTimeOut and ConsoleMode (80x25/100x30) setting save/restore in Duet Setup.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10039 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoEnhance memory copy logic for PEI core image read. The change uses CopyMem() library...
jgong5 [Mon, 22 Feb 2010 05:48:06 +0000 (05:48 +0000)]
Enhance memory copy logic for PEI core image read. The change uses CopyMem() library function for unshadowed version and uses inline implementation for a shadowed version. This reduces PE image reading time to 1/5 - 1/10 when code cache is disabled. The change also fixed a memory leak when allocating shadow space for image read function.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10038 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd [depex] on gEfiMpServiceProtocolGuid so the number of CPUs is known
mdkinney [Sun, 21 Feb 2010 20:56:40 +0000 (20:56 +0000)]
Add [depex] on gEfiMpServiceProtocolGuid so the number of CPUs is known
Add [depex] on gEfiSmmCpuIo2Protocol so we know that the SMM CPU I/O 2 Protocol in the PI SMST is valid

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10037 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoChange RegisterProtocolNotify for dependent protocols to [Depex] expression
mdkinney [Sun, 21 Feb 2010 20:55:00 +0000 (20:55 +0000)]
Change RegisterProtocolNotify for dependent protocols to [Depex] expression

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10036 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix build breaks
mdkinney [Sun, 21 Feb 2010 20:46:36 +0000 (20:46 +0000)]
Fix build breaks
Update EfiAcpiResetSystem() to match function prototype for EFI_RESET_SYSTEM
Add CpuDeadLoop() in all paths, so EfiAcpiResetSystem() can never return to be compliant with UEFI Spec, even when ASSERT() statements are disabled.
Change DEBUG() messages from EFI_D_ERROR to DEBUG_INFO because they are not error messages.
Simplify implementation from 4 files down to 2 files.
Use IoAndTheOr16() and MmioAndTheOr16() instead if IoRead/Write16() and MmioRead/Write16()

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10035 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoPort AcpiResetDxe from EDK to EDKII to enable reset function on DUET above legacy...
niruiyu [Sun, 21 Feb 2010 09:30:01 +0000 (09:30 +0000)]
Port AcpiResetDxe from EDK to EDKII to enable reset function on DUET above legacy free platform.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10034 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoCorrect the table's version according to PI/UEFI spec.
klu2 [Sun, 21 Feb 2010 03:31:44 +0000 (03:31 +0000)]
Correct the table's version according to PI/UEFI spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10033 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoadd more comments for gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport.
niruiyu [Sat, 20 Feb 2010 07:11:13 +0000 (07:11 +0000)]
add more comments for gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10032 6f19259b-4bc3-4df7-8a09-765794883524

11 years agogEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport should be TRUE in DUET...
niruiyu [Sat, 20 Feb 2010 07:10:16 +0000 (07:10 +0000)]
gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport should be TRUE in DUET platform.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10031 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMake the passed in string not require \n
andrewfish [Sat, 20 Feb 2010 00:12:19 +0000 (00:12 +0000)]
Make the passed in string not require \n

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10030 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdding a command to show how symbols work in EFI
andrewfish [Fri, 19 Feb 2010 23:49:51 +0000 (23:49 +0000)]
Adding a command to show how symbols work in EFI

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10029 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoClean up some externs
andrewfish [Fri, 19 Feb 2010 23:05:04 +0000 (23:05 +0000)]
Clean up some externs

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10028 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMake build script exit on build error
andrewfish [Fri, 19 Feb 2010 22:48:26 +0000 (22:48 +0000)]
Make build script exit on build error

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10027 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix typo
andrewfish [Fri, 19 Feb 2010 22:31:35 +0000 (22:31 +0000)]
Fix typo

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10026 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoSync gcc with armasm. update some memory barriers.
andrewfish [Fri, 19 Feb 2010 18:51:10 +0000 (18:51 +0000)]
Sync gcc with armasm. update some memory barriers.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10025 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate gcc flags to armv7
andrewfish [Fri, 19 Feb 2010 18:45:29 +0000 (18:45 +0000)]
Update gcc flags to  armv7

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10024 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoHack in some DSB, ISB syncronization primatives. Need to do it a little cleaner.
andrewfish [Thu, 18 Feb 2010 04:25:31 +0000 (04:25 +0000)]
Hack in some DSB, ISB syncronization primatives. Need to do it a little cleaner.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10023 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoChange Cortex-A8 references to ARMv7. Cortex-A8 is a branded implementation of the...
andrewfish [Thu, 18 Feb 2010 01:57:13 +0000 (01:57 +0000)]
Change Cortex-A8 references to ARMv7. Cortex-A8 is a branded implementation of the ARMv7 processor architecture.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10022 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix case bug.
andrewfish [Wed, 17 Feb 2010 05:14:22 +0000 (05:14 +0000)]
Fix case bug.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10021 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoCleanup HOB DEBUG prints
andrewfish [Wed, 17 Feb 2010 01:12:55 +0000 (01:12 +0000)]
Cleanup HOB DEBUG prints

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10020 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate to pass up Decompress, and PECOFF code from SEC to DXE Core. Turn on USB,...
andrewfish [Wed, 17 Feb 2010 00:21:18 +0000 (00:21 +0000)]
Update to pass up Decompress, and PECOFF code from SEC to DXE Core. Turn on USB, even though it does not currently work.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10019 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix bug in UncachedMemoryAllocationLib, Assembler, make DefaultExceptionHandler lib...
andrewfish [Tue, 16 Feb 2010 23:45:42 +0000 (23:45 +0000)]
Fix bug in UncachedMemoryAllocationLib, Assembler, make DefaultExceptionHandler lib inc the PC past the faulting instruction to aid debug. Update LR in Exception hanlder, so return address can get updated properly.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10018 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix typo in mfill command
andrewfish [Tue, 16 Feb 2010 23:43:28 +0000 (23:43 +0000)]
Fix typo in mfill command

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10017 6f19259b-4bc3-4df7-8a09-765794883524

11 years ago1) Fix build issues
mdkinney [Tue, 16 Feb 2010 20:59:57 +0000 (20:59 +0000)]
1) Fix build issues
2) Change ARCHITECTURAL_PROTOCOL_ENTRY name to EFI_CORE_PROTOCOL_NOTIFY_ENTRY so it can be used for both Architectural Protocols and optional protocols that the DXE Core may use.  Also remove BOOLEAN ArchitecturalProtocol field, so it is back to its original form.
3) Put mArchProtocols[] back to its original form, but add a NULL entry at the end so the end of the table can be easily detected in loops
4) Add mOptionalProtocols[] that at this time only has the SMM Base 2 Protocol in it.
5) Add NULL entry to mMissingProtocols[] so the end of the table can be easily detected.
6) Update all loops on mArchProtocols[], mOptionalProtocols, and mMissingProtocols[] to remove Index(s) and simply looks for a NULL ProtocolGuid to find the end of the table.
7) Update protocol notify events to pass the associated EFI_CORE_PROTOCOL_NOTIFY_ENTRY * as the Context parameter.   This simplifies GenericProtocolNotify() by completely eliminating the search loop.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10016 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUse Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Tue, 16 Feb 2010 04:07:39 +0000 (04:07 +0000)]
Use Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10015 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUse Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Tue, 16 Feb 2010 04:06:46 +0000 (04:06 +0000)]
Use Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10014 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUse Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Tue, 16 Feb 2010 04:04:58 +0000 (04:04 +0000)]
Use Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10013 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoClean up HOB debug prints
andrewfish [Tue, 16 Feb 2010 03:05:59 +0000 (03:05 +0000)]
Clean up HOB debug prints

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10012 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix crash in UnixPkg and BeagleBoard caused by gSmmBase2 getting added to the now...
andrewfish [Tue, 16 Feb 2010 02:52:15 +0000 (02:52 +0000)]
Fix crash in UnixPkg and BeagleBoard caused by gSmmBase2 getting added to 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@10011 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAfter the ASSERT adjust the PC so you skip the faulting instruction. Lets you walk...
andrewfish [Tue, 16 Feb 2010 01:03:16 +0000 (01:03 +0000)]
After the ASSERT adjust the PC so you skip the faulting instruction. Lets you walk out of the exception handler and keeprunning code. This way you can walk out of the call stack.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10010 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoCleanup SerailIO drivers to have a device path and use PCD settings for various stuff...
andrewfish [Mon, 15 Feb 2010 20:40:51 +0000 (20:40 +0000)]
Cleanup SerailIO drivers to have a device path and use PCD settings for various stuff. Also clean up a few coding convention items.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10009 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRemove SMM_CORE as a supported module type for the MemoryAllocationLib instance that...
mdkinney [Mon, 15 Feb 2010 18:16:05 +0000 (18:16 +0000)]
Remove SMM_CORE as a supported module type for the MemoryAllocationLib instance that uses UEFI Boot Services

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10008 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Sun, 14 Feb 2010 06:29:47 +0000 (06:29 +0000)]
Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10007 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Sun, 14 Feb 2010 06:20:41 +0000 (06:20 +0000)]
Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10006 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Sun, 14 Feb 2010 06:20:06 +0000 (06:20 +0000)]
Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10005 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Sun, 14 Feb 2010 06:18:15 +0000 (06:18 +0000)]
Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10004 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Sun, 14 Feb 2010 06:17:51 +0000 (06:17 +0000)]
Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10003 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Sun, 14 Feb 2010 06:00:11 +0000 (06:00 +0000)]
Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10002 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd Memory Allocation Library instance for modules of type DXE_SMM_DRIVER
mdkinney [Sun, 14 Feb 2010 05:59:31 +0000 (05:59 +0000)]
Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVER

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10001 6f19259b-4bc3-4df7-8a09-765794883524

11 years ago1) Remove dependency on the UEFI Boot Services Table Library so the gBS, gST, and...
mdkinney [Sun, 14 Feb 2010 05:49:44 +0000 (05:49 +0000)]
1) Remove dependency on the UEFI Boot Services Table Library so the gBS, gST, and gImageHandle symbols will not be automatically linked into an SMM Driver that uses this library.
2) Remove redundant include of <PiDxe.h>
3) Clean up constructor to use InSmm() library function instead of duplicating logic.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10000 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRemove constructor from this library. This library already has SMM CPU I/O 2 in...
mdkinney [Sun, 14 Feb 2010 05:47:00 +0000 (05:47 +0000)]
Remove constructor from this library.  This library already has SMM CPU I/O 2 in its [Depex], so any module using this library will not be dispatched until the SMM CPU I/O 2 Protocol is installed into the SMM handle database and also copied into the SMM Services Table.

The worker functions in this library have also been updated to simply use the instance of the SMM CPU I/O 2 Protocol that is present in the SMM Services Table.

The dependency on the UEFI Boot Services Table Library has also been removed so the gBS, gST, and gImageHandle symbols will not be automatically linked into an SMM Driver that uses this library.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9999 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUse atomic AsmDisableCache() and AsmDisableCache() functions instead of AsmWriteCr0...
mdkinney [Sun, 14 Feb 2010 00:44:27 +0000 (00:44 +0000)]
Use atomic AsmDisableCache() and AsmDisableCache() functions instead of AsmWriteCr0() and AsmWbinvd() calls

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9998 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate DXE Core to be compatible with PI 1.2 SMM Drivers.
mdkinney [Sat, 13 Feb 2010 01:57:22 +0000 (01:57 +0000)]
Update DXE Core to be compatible with PI 1.2 SMM Drivers.

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@9997 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix help command scroll issue. Also add FV space used, and free space to dir command.
andrewfish [Fri, 12 Feb 2010 20:13:55 +0000 (20:13 +0000)]
Fix help command scroll issue. Also add FV space used, and free space to dir command.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9996 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate UNDI driver to expose dynamic media detect capability.
xdu2 [Fri, 12 Feb 2010 08:45:38 +0000 (08:45 +0000)]
Update UNDI driver to expose dynamic media detect capability.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9995 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate SnpDxe to support dynamic media detect.
xdu2 [Fri, 12 Feb 2010 08:45:15 +0000 (08:45 +0000)]
Update SnpDxe to support dynamic media detect.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9994 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd media status relative definition to UEFI PXE header file.
xdu2 [Fri, 12 Feb 2010 08:45:07 +0000 (08:45 +0000)]
Add media status relative definition to UEFI PXE header file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9993 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoChange UI for dir of FV to make it less confusing.
andrewfish [Fri, 12 Feb 2010 00:12:14 +0000 (00:12 +0000)]
Change UI for dir of FV to make it less confusing.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9992 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd support for Seeking on FV, and update the device syntax to support specifying...
andrewfish [Thu, 11 Feb 2010 19:57:56 +0000 (19:57 +0000)]
Add support for Seeking on FV, and update the device syntax to support specifying which section of the FV file you want to operate on, previously the only option was to operate on the Raw file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9991 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoSupport HII VOID* dynamic/dynamicEx type PCD.
klu2 [Thu, 11 Feb 2010 08:19:29 +0000 (08:19 +0000)]
Support HII VOID* dynamic/dynamicEx type PCD.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9990 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate HiiDataBase to make sure that the installed StringPackages contains the same...
lgao4 [Thu, 11 Feb 2010 07:16:06 +0000 (07:16 +0000)]
Update HiiDataBase to make sure that the installed StringPackages contains the same number string ID.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9989 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoDUET BDS clean up.
niruiyu [Thu, 11 Feb 2010 06:34:15 +0000 (06:34 +0000)]
DUET BDS clean up.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9988 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoTo follow UEFI spec 2.3 chapter 3.4.1.1, add the ConnectSingleController for removabl...
niruiyu [Thu, 11 Feb 2010 06:29:16 +0000 (06:29 +0000)]
To follow UEFI spec 2.3 chapter 3.4.1.1, add the ConnectSingleController for removable media boot.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9987 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoThe fix is for EFI Linux capsule test case can not run.
li-elvin [Thu, 11 Feb 2010 06:27:18 +0000 (06:27 +0000)]
The fix is for EFI Linux capsule test case can not run.
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@9986 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoGraphicsOutputBlt() need judge parameter
klu2 [Thu, 11 Feb 2010 05:53:06 +0000 (05:53 +0000)]
GraphicsOutputBlt() need judge parameter

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9985 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix the issue that unknown format FV in Fvhob is installed for FvInfoPpi more than...
klu2 [Thu, 11 Feb 2010 05:49:48 +0000 (05:49 +0000)]
Fix the issue that unknown format FV in Fvhob is installed for FvInfoPpi 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@9984 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate PeCoffExtraActionLib for NT32 to allow an app or driver to be loaded more...
mdkinney [Thu, 11 Feb 2010 04:32:34 +0000 (04:32 +0000)]
Update PeCoffExtraActionLib for NT32 to allow an app or driver to be loaded more than once.  Only the first instance will support source level debug.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9983 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoDo not set gBS to NULL when the ExitBootServices event notification for the UEFI...
mdkinney [Thu, 11 Feb 2010 03:55:26 +0000 (03:55 +0000)]
Do not set gBS to NULL when the ExitBootServices event notification for the UEFI Runtime Lib is executed.

There is no guarantee that the ExitBootServices notification function from this lib will be the last ExitBootServices notification function registered by a module that uses the UEFI Runtime lib.  If additional ExitBootServices notification functions require the use of gBS, then setting to NULL will break those additional ExitBootServices notification functions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9982 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoPass the correct TokenNumber into a CallbackOnSet notification function. The value...
mdkinney [Thu, 11 Feb 2010 03:51:17 +0000 (03:51 +0000)]
Pass the correct TokenNumber into a CallbackOnSet notification function.  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@9981 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoPass the correct TokenNumber into a CallbackOnSet notification function. The value...
mdkinney [Thu, 11 Feb 2010 03:47:40 +0000 (03:47 +0000)]
Pass the correct TokenNumber into a CallbackOnSet notification function.  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@9980 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix issue with making a seek to zero on an FV file legal.
andrewfish [Thu, 11 Feb 2010 03:21:18 +0000 (03:21 +0000)]
Fix issue with making a seek to zero on an FV file legal.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9979 6f19259b-4bc3-4df7-8a09-765794883524

11 years ago1. free those inserted NsKeyNode resource when releasing SetKeyBoardLayout event.
erictian [Thu, 11 Feb 2010 02:47:10 +0000 (02:47 +0000)]
1. free those inserted NsKeyNode resource when releasing SetKeyBoardLayout 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@9978 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoCoding style fix and minor improvements.
rsun3 [Thu, 11 Feb 2010 02:33:16 +0000 (02:33 +0000)]
Coding style fix and minor improvements.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9977 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoSupport Name/Value Storage in UEFI2.1 HII driver.
lgao4 [Thu, 11 Feb 2010 02:31:18 +0000 (02:31 +0000)]
Support Name/Value Storage in UEFI2.1 HII driver.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9976 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd example of Name/Value pair var store to DriverSample
lgao4 [Thu, 11 Feb 2010 01:59:35 +0000 (01:59 +0000)]
Add example of Name/Value pair var store to DriverSample

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9975 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate EBL to have an optional width specifier on commands. So hexdump.4 means use...
andrewfish [Wed, 10 Feb 2010 23:48:46 +0000 (23:48 +0000)]
Update EBL to have an optional width specifier on commands. So hexdump.4 means use a width of 4 bytes.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9974 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOnly ment to add support to build and launch Ebl shell, not switch over to it. Undo...
andrewfish [Wed, 10 Feb 2010 21:16:02 +0000 (21:16 +0000)]
Only ment to add support to build and launch Ebl shell, not switch over to it. Undo the switch.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9973 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRemove dead command and clean up some coding style stuff.
andrewfish [Wed, 10 Feb 2010 20:04:08 +0000 (20:04 +0000)]
Remove dead command and clean up some coding style stuff.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9972 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoThe VOLUME name case did not reserve enough storage in the CWD function.
andrewfish [Wed, 10 Feb 2010 19:27:14 +0000 (19:27 +0000)]
The VOLUME name case did not reserve enough storage in the CWD function.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9971 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix issue with VOLUMN Name as an alias for device name.
andrewfish [Wed, 10 Feb 2010 19:14:55 +0000 (19:14 +0000)]
Fix issue with VOLUMN Name as an alias for device name.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9970 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUefiCpuPkg/CpuDxe: Fix build error
jljusten [Wed, 10 Feb 2010 17:37:37 +0000 (17:37 +0000)]
UefiCpuPkg/CpuDxe: Fix build error

This driver was not building following the r9935 & r9941 changes.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9969 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUefiCpuPkg: Add CpuDxe driver to UefiCpuPkg.dsc for build test coverage
jljusten [Wed, 10 Feb 2010 17:37:10 +0000 (17:37 +0000)]
UefiCpuPkg: Add CpuDxe driver to UefiCpuPkg.dsc for build test coverage

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9968 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUefiCpuPkg/CpuDxe: Remove unnecessary OvmfPkg dependency
jljusten [Wed, 10 Feb 2010 17:36:50 +0000 (17:36 +0000)]
UefiCpuPkg/CpuDxe: Remove unnecessary OvmfPkg dependency

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9967 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoPer Framework SMM CIS spec, SMM Base Protocol.Communicate() is availabe in runtime...
rsun3 [Wed, 10 Feb 2010 08:30:51 +0000 (08:30 +0000)]
Per Framework SMM CIS spec, SMM Base Protocol.Communicate() is availabe in runtime. In SmmBaseOnSmmBase2Thunk driver, implementation of Communicate() uses SMM Communication Protocol. The thunk driver caches a pointer to SMM Communication Protocol. This pointer needs to be converted on Virtual Address Change Event.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9966 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoa)Save and disable CPU interrupt before calling AsmWriteIdtr().
vanjeff [Wed, 10 Feb 2010 06:48:34 +0000 (06:48 +0000)]
a)Save and disable CPU interrupt before calling AsmWriteIdtr().
b)Restore CPU interrupt status after callng AsmWriteIdtr().

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9965 6f19259b-4bc3-4df7-8a09-765794883524

11 years agorevise the debug message to add 0x in front of the HEX number for consistency
jchen20 [Wed, 10 Feb 2010 06:10:53 +0000 (06:10 +0000)]
revise the debug message to add 0x in front of the HEX number for consistency
replace FixedPcdGetXX with PcdGetXX to access PcdLoadModuleAtFixAddressEnable

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9964 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix ICC build break by do data conversion.
lgao4 [Wed, 10 Feb 2010 06:01:18 +0000 (06:01 +0000)]
Fix ICC build break by do data conversion.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9963 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoLeverages SMM Status Code Protocol, instead of OemHookStatusCodeLib.
xli24 [Wed, 10 Feb 2010 03:41:24 +0000 (03:41 +0000)]
Leverages SMM Status Code Protocol, instead of OemHookStatusCodeLib.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9962 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd device path DXE driver in Duet FDF file to compliant with UEFI.
klu2 [Wed, 10 Feb 2010 02:33:40 +0000 (02:33 +0000)]
Add device path DXE driver in Duet FDF file to compliant with UEFI.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9961 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoClean up UncachedMemoryAllocationLib to use CPU AP.
andrewfish [Wed, 10 Feb 2010 01:49:46 +0000 (01:49 +0000)]
Clean up UncachedMemoryAllocationLib to use CPU AP.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9960 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoNeeded to fix defaulting / to be \ as it is required by EFI Simple File System.
andrewfish [Wed, 10 Feb 2010 01:09:59 +0000 (01:09 +0000)]
Needed to fix defaulting / to be \ as it is required by EFI Simple File System.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9959 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd CWD and thus a cd command to EBL shell. Fix WatchdogTimout code in EBL, it was...
andrewfish [Wed, 10 Feb 2010 00:46:41 +0000 (00:46 +0000)]
Add CWD and thus a cd command to EBL shell. Fix WatchdogTimout code in EBL, it was inside a PCD feature flag and should have been outside of the PCD so it is in all paths.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9958 6f19259b-4bc3-4df7-8a09-765794883524

11 years agochange the GetPcd64 to FixedGetPcd64 to pass ECC
jchen20 [Tue, 9 Feb 2010 09:52:46 +0000 (09:52 +0000)]
change the GetPcd64 to FixedGetPcd64 to pass ECC

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9957 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoa)Save and disable CPU interrupt before calling AsmWriteIdtr().
vanjeff [Tue, 9 Feb 2010 09:23:17 +0000 (09:23 +0000)]
a)Save and disable CPU interrupt before calling AsmWriteIdtr().
b)Restore CPU interrupt status after callng AsmWriteIdtr().

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9956 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd license header
klu2 [Tue, 9 Feb 2010 07:57:20 +0000 (07:57 +0000)]
Add license header

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9955 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate HiiString Protocol and HiiSetString Api in HiiLib
lgao4 [Tue, 9 Feb 2010 07:12:35 +0000 (07:12 +0000)]
Update HiiString Protocol and HiiSetString Api in HiiLib
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@9954 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoCorrect BlockSize when call ConfigToBlock API.
lgao4 [Tue, 9 Feb 2010 06:29:37 +0000 (06:29 +0000)]
Correct BlockSize when call ConfigToBlock API.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9953 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMake the Volume Name display the same name that the use needs to type. ie. replace...
andrewfish [Tue, 9 Feb 2010 00:22:30 +0000 (00:22 +0000)]
Make the Volume Name display the same name that the use needs to type. ie. replace space with _.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9952 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate MdeModulePkg to not use EFI_SPECIFICATION_VERSION and PI_SPECIFICATION_VERSION...
qhuang8 [Mon, 8 Feb 2010 11:43:19 +0000 (11:43 +0000)]
Update MdeModulePkg to not use EFI_SPECIFICATION_VERSION and PI_SPECIFICATION_VERSION in source code.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9951 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd the missing BDS license header.
lgao4 [Mon, 8 Feb 2010 09:48:29 +0000 (09:48 +0000)]
Add the missing BDS license header.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9950 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoformat uniform: move tab to blank.
erictian [Mon, 8 Feb 2010 05:54:54 +0000 (05:54 +0000)]
format uniform: move tab to blank.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9949 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd EBC driver to Duet platform so that EBC option ROM can get dispatched.
niruiyu [Mon, 8 Feb 2010 05:43:12 +0000 (05:43 +0000)]
Add EBC driver to Duet platform so that EBC option ROM can get dispatched.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9948 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRoll back to ECC previous stable version.
jlin16 [Mon, 8 Feb 2010 05:37:56 +0000 (05:37 +0000)]
Roll back to ECC previous stable version.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9947 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate ECC predicate expression checks for brace-quoted and boolean pointer variables.
jlin16 [Mon, 8 Feb 2010 05:22:26 +0000 (05:22 +0000)]
Update ECC predicate expression checks for brace-quoted and boolean pointer variables.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9946 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRemove DEBUG_LOAD for InstallProtocolInterface() to align with PPI installation debug...
qhuang8 [Mon, 8 Feb 2010 03:14:15 +0000 (03:14 +0000)]
Remove DEBUG_LOAD for InstallProtocolInterface() to align with PPI installation debug message in PeiCore.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9945 6f19259b-4bc3-4df7-8a09-765794883524

11 years agomodified to pass the VS2003 build
jchen20 [Mon, 8 Feb 2010 03:13:09 +0000 (03:13 +0000)]
modified to pass the VS2003 build

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9944 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAssume Tick value 1 as the beginning time of boot.
jgong5 [Mon, 8 Feb 2010 02:12:47 +0000 (02:12 +0000)]
Assume Tick value 1 as the beginning time of boot.
This is part of the fix of #202075 to make sure the usage model below doesn’t break:
PERF_START (0, “Token1”, “Module1”, 1);
PERF_END (0, “Token1”, Module1”, 0);

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9943 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdded CWD to EfiFileLib. Fix some X64 warnings.
andrewfish [Sun, 7 Feb 2010 22:04:03 +0000 (22:04 +0000)]
Added CWD to EfiFileLib. Fix some X64 warnings.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9942 6f19259b-4bc3-4df7-8a09-765794883524