mirror_edk2.git
11 years agoOverride MSFT build option in INF files to remove /GL or /Oi.
vanjeff [Tue, 16 Nov 2010 02:06:29 +0000 (02:06 +0000)]
Override MSFT build option in INF files to remove /GL or /Oi.

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

11 years agoFix spelling error in comment
mdkinney [Tue, 16 Nov 2010 00:33:52 +0000 (00:33 +0000)]
Fix spelling error in comment

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

11 years agoSync EDKII BaseTools to BaseTools project r2093.
lgao4 [Mon, 15 Nov 2010 02:51:34 +0000 (02:51 +0000)]
Sync EDKII BaseTools to BaseTools project r2093.

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

11 years agoFix build error.
ydong10 [Mon, 15 Nov 2010 02:14:25 +0000 (02:14 +0000)]
Fix build error.

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

11 years agoupdate error handling to use less ASSERT.
jcarsey [Fri, 12 Nov 2010 21:40:12 +0000 (21:40 +0000)]
update error handling to use less ASSERT.

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

11 years agoUpdate return value.
jcarsey [Fri, 12 Nov 2010 19:50:46 +0000 (19:50 +0000)]
Update return value.

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

11 years agoClarify the MARCO a little.
jcarsey [Fri, 12 Nov 2010 19:46:26 +0000 (19:46 +0000)]
Clarify the MARCO a little.

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

11 years agoAdding Driver1 profile commands to the UEFI Shell 2.0.
jcarsey [Fri, 12 Nov 2010 19:40:21 +0000 (19:40 +0000)]
Adding Driver1 profile commands to the UEFI Shell 2.0.

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

11 years agoRefine coding style.
ydong10 [Fri, 12 Nov 2010 08:00:23 +0000 (08:00 +0000)]
Refine coding style.

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

11 years agoFix the issue that the high 16-bit of EAX may contain invalid data, which cause bad...
li-elvin [Fri, 12 Nov 2010 07:48:32 +0000 (07:48 +0000)]
Fix the issue that the high 16-bit of EAX may contain invalid data, which cause bad stack pointer, the change will ensure the high 16-bit of EAX is cleared.

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

11 years agoFix the issue that the high 16-bit of EAX may contain invalid data, which cause bad...
li-elvin [Fri, 12 Nov 2010 07:47:27 +0000 (07:47 +0000)]
Fix the issue that the high 16-bit of EAX may contain invalid data, which cause bad stack pointer, the change will ensure the high 16-bit of EAX is cleared.

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

11 years agoFix the issue that the high 16-bit of EAX may contain invalid data, which cause bad...
li-elvin [Fri, 12 Nov 2010 07:45:08 +0000 (07:45 +0000)]
Fix the issue that the high 16-bit of EAX may contain invalid data, which cause bad stack pointer, the change will ensure the high 16-bit of EAX is cleared.

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

11 years agoFixed build error
ydong10 [Fri, 12 Nov 2010 07:35:37 +0000 (07:35 +0000)]
Fixed build error

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

11 years agofix GCC build failure. make function definition same with declaration.
erictian [Fri, 12 Nov 2010 05:14:15 +0000 (05:14 +0000)]
fix GCC build failure. make function definition same with declaration.

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

11 years agoFix bug: The lower 2 bits of Width and stripped, Count will always be multiplied...
vanjeff [Fri, 12 Nov 2010 02:10:21 +0000 (02:10 +0000)]
Fix bug: The lower 2 bits of Width and stripped, Count will always be multiplied by 1, which will leave Count unchanged.

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

11 years agoPrint Arrow for Goto button.
lgao4 [Thu, 11 Nov 2010 09:44:51 +0000 (09:44 +0000)]
Print Arrow for Goto button.

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

11 years agofix build error
erictian [Wed, 10 Nov 2010 07:23:12 +0000 (07:23 +0000)]
fix build error

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

11 years agoReplaced MAX_EXTENDED_DATA_SIZE by EFI_STATUS_CODE_DATA_MAX_SIZE.
vanjeff [Wed, 10 Nov 2010 06:13:55 +0000 (06:13 +0000)]
Replaced MAX_EXTENDED_DATA_SIZE by EFI_STATUS_CODE_DATA_MAX_SIZE.

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

11 years agoPrevent infinite recursion when ASSERT(), DEBUG(), or any other use of ReportStatusCo...
vanjeff [Wed, 10 Nov 2010 06:12:25 +0000 (06:12 +0000)]
Prevent infinite recursion when ASSERT(), DEBUG(), or any other use of ReportStatusCode is performed at > TPL_NOTIFY or there is not enough memory to allocate a buffer for the ExtendedData associated with the status code being reported.

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

11 years agostore Year/Month/Day to variable in SetWakeupTime() because PCAT RTC Alarm registers...
erictian [Wed, 10 Nov 2010 03:18:21 +0000 (03:18 +0000)]
store Year/Month/Day to variable in SetWakeupTime() because PCAT RTC Alarm registers has not corresponding Y/M/D alarm register.

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

11 years agoFix ICC build break.
rsun3 [Wed, 10 Nov 2010 03:16:25 +0000 (03:16 +0000)]
Fix ICC build break.

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

11 years agoAdd new PCD gEfiMdeModulePkgTokenSpaceGuid.PcdMaxEfiSystemTablePointerAddress for...
lgao4 [Tue, 9 Nov 2010 07:54:53 +0000 (07:54 +0000)]
Add new PCD  gEfiMdeModulePkgTokenSpaceGuid.PcdMaxEfiSystemTablePointerAddress for the MdeModulePkg that allows the platform DSC file to specify the address below which the EFI_SYSTEM_TABLE_POINTER structure is allocated.

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

11 years agoSome existing PCI adapters with UEFI option ROMs make unaligned requests through...
rsun3 [Tue, 9 Nov 2010 03:41:03 +0000 (03:41 +0000)]
Some existing PCI adapters with UEFI option ROMs make unaligned requests through the PCI I/O Protocol. Add support for unaligned requests in the PCI IO protocol implementation in the PCI Bus driver to be compatible with those UEFI option ROMs.

This solution defines a PCD Feature Flag to enabled support for unaligned requests through the PCI I/O Protocol.  This flag is disabled by default. Platforms that do want to support such EFI/UEFI drivers that make unaligned PCI I/O requests should enable this feature.

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

11 years agoMove some define code to the uni file. Also fixed some memory leak.
ydong10 [Tue, 9 Nov 2010 03:22:42 +0000 (03:22 +0000)]
Move some define code to the uni file. Also fixed some memory leak.

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

11 years agoFix tracker for build error.
ydong10 [Tue, 9 Nov 2010 02:09:56 +0000 (02:09 +0000)]
Fix tracker for build error.

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

11 years agoPer the UEFI spec, if a PCI controller is a P2P bridge, then the I/O, Memory and...
rsun3 [Mon, 8 Nov 2010 07:36:12 +0000 (07:36 +0000)]
Per the UEFI spec, if a PCI controller is a P2P bridge, then the I/O, Memory and Bus Master bits in the Command register of the PCI configuration header should be placed in the enabled state by the PCI Bus driver.

But current PCI bus driver has a bug that if a P2P bridge has no child devices detected during enumeration, the bits won’t be set. This may impact PCI hot plug capable bridges because the OS may re-assign resources for them causing the reserved resource by the firmware will be overwritten.

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

11 years agoRemove unnecessary mBdsImageHandle.
niruiyu [Mon, 8 Nov 2010 06:56:57 +0000 (06:56 +0000)]
Remove unnecessary mBdsImageHandle.

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

11 years agoRefine code to make code follow the coding style.
ydong10 [Mon, 8 Nov 2010 05:28:01 +0000 (05:28 +0000)]
Refine code to make code follow the coding style.

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

11 years agoAdd Doxygen style comments to the EFI_SIZE_TO_PAGES() and EFI_PAGES_TO_SIZE() macros...
mdkinney [Fri, 5 Nov 2010 22:27:19 +0000 (22:27 +0000)]
Add Doxygen style comments to the EFI_SIZE_TO_PAGES() and EFI_PAGES_TO_SIZE() macros.  Clarify that the Size and Pages parameters to these macros are assumed to be type UINTN.

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

11 years agoAdd comment that describes the TPL restrictions for the Data Hub Protocol.
mdkinney [Fri, 5 Nov 2010 20:29:16 +0000 (20:29 +0000)]
Add comment that describes the TPL restrictions for the Data Hub Protocol.

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

11 years agoFix bug in DataHub where it would skip the first record in a set when a filter is...
mdkinney [Fri, 5 Nov 2010 20:22:18 +0000 (20:22 +0000)]
Fix bug in DataHub where it would skip the first record in a set when a filter is being used.  Also add comments and update source code logic to make it easier to understand and maintain.

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

11 years agoUpdate ReadMe.txt to correct the minor errors in build steps.
niruiyu [Fri, 5 Nov 2010 08:44:29 +0000 (08:44 +0000)]
Update ReadMe.txt to correct the minor errors in build steps.

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

11 years agoRefine code to make code run more safely.
ydong10 [Fri, 5 Nov 2010 06:28:33 +0000 (06:28 +0000)]
Refine code to make code run more safely.

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

11 years agoUpdate EdkShellBinPkg to integrate a bug fix of Ping command in Shell r46
niruiyu [Fri, 5 Nov 2010 05:57:43 +0000 (05:57 +0000)]
Update EdkShellBinPkg to integrate a bug fix of Ping command in Shell r46

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

11 years agoAdd comment about usage on EFI_SIZE_TO_PAGES() and EFI_PAGES_TO_SIZE macros.
rsun3 [Fri, 5 Nov 2010 03:08:17 +0000 (03:08 +0000)]
Add comment about usage on EFI_SIZE_TO_PAGES() and EFI_PAGES_TO_SIZE macros.

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

11 years agoPrevent infinite recursion when ASSERT(), DEBUG(), or any other use of ReportStatusCo...
mdkinney [Thu, 4 Nov 2010 20:58:23 +0000 (20:58 +0000)]
Prevent infinite recursion when ASSERT(), DEBUG(), or any other use of ReportStatusCode is performed at > TPL_NOTIFY or there is not enough memory to allocate a buffer for the ExtendedData associated with the status code being reported

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

11 years agoAdd API to ExtractGuidedSectionLib.h to retrieve the set of registered handlers.
ydong10 [Thu, 4 Nov 2010 05:51:32 +0000 (05:51 +0000)]
Add API to ExtractGuidedSectionLib.h to retrieve the set of registered handlers.
API Function name is ExtractGuidedSectionGetHandlers.

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

11 years agoComplement fix for revision #10998 (Remove PI SMM IPL's dependency on CPU AP).
rsun3 [Thu, 4 Nov 2010 05:27:23 +0000 (05:27 +0000)]
Complement fix for revision #10998 (Remove PI SMM IPL's dependency on CPU AP).

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

11 years agoThe CurrentNumberOfxxxxx should be based on the device going away, and not the next...
vanjeff [Wed, 3 Nov 2010 05:46:11 +0000 (05:46 +0000)]
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

11 years agoswaps the order of timer disable and memory map termination to make sure memory map...
vanjeff [Wed, 3 Nov 2010 03:21:29 +0000 (03:21 +0000)]
swaps the order of timer disable and memory map termination to make sure memory map unchanged.

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

11 years agoRemove PI SMM IPL's dependency on CPU AP so that PI SMM IPL can be dispatched before...
rsun3 [Wed, 3 Nov 2010 01:14:51 +0000 (01:14 +0000)]
Remove PI SMM IPL's dependency on CPU AP so that PI SMM IPL can be dispatched before the CPU AP is installed.
If PI SMM IPL will be dispatched before the CPU AP is installed for a platform, the platform developer is expected to set cache-ability of SMRAM to WB earlier to improve performance of SMM initialization.

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

11 years agoUpdate CryptoPkg for new ciphers (HMAC, Block Cipher, etc) supports.
qlong [Tue, 2 Nov 2010 06:06:38 +0000 (06:06 +0000)]
Update CryptoPkg for new ciphers (HMAC, Block Cipher, etc) supports.

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

11 years agoFix PCD token value conflict issue.
gikidy [Tue, 2 Nov 2010 05:27:15 +0000 (05:27 +0000)]
Fix PCD token value conflict issue.

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

11 years agoFix PCD token value conflict issue.
gikidy [Tue, 2 Nov 2010 05:26:30 +0000 (05:26 +0000)]
Fix PCD token value conflict issue.

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

11 years agoFix PCD token value format issue.
gikidy [Tue, 2 Nov 2010 05:23:20 +0000 (05:23 +0000)]
Fix PCD token value format issue.

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

11 years agoRefine code to make code run more safely.
ydong10 [Mon, 1 Nov 2010 09:20:56 +0000 (09:20 +0000)]
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

11 years agoRefine code to follow the coding style.
ydong10 [Mon, 1 Nov 2010 09:00:23 +0000 (09:00 +0000)]
Refine code to follow the coding style.

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

11 years ago1. Update IPsec driver to produce EFI_IPSEC2_PROTOCOL which is defined by UEFI errata...
xdu2 [Mon, 1 Nov 2010 08:19:28 +0000 (08:19 +0000)]
1. Update IPsec driver to produce EFI_IPSEC2_PROTOCOL which is defined by UEFI errata that will appear in UEFI 2.3 specification after 2.3 errata B and future UEFI Specifications after 2.3.
2. Update IPv6 driver to consume the EFI_IPSEC2_PROTOCOL.

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

11 years agoUpdate ipsecconfig and ping6 due to ShellLib update.
xdu2 [Mon, 1 Nov 2010 08:17:43 +0000 (08:17 +0000)]
Update ipsecconfig and ping6 due to ShellLib update.

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

11 years agoAdd CryptoPkg (from UDK2010.UP3)
hhtian [Mon, 1 Nov 2010 06:30:58 +0000 (06:30 +0000)]
Add CryptoPkg (from UDK2010.UP3)

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

11 years agoAdd NetworkPkg (P.UDK2010.UP3.Network.P1)
hhtian [Mon, 1 Nov 2010 06:13:54 +0000 (06:13 +0000)]
Add NetworkPkg (P.UDK2010.UP3.Network.P1)

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

11 years agoS.M.A.R.T feature enable
erictian [Thu, 28 Oct 2010 07:44:11 +0000 (07:44 +0000)]
S.M.A.R.T feature enable

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

11 years agoCorrect Comments.
lgao4 [Thu, 28 Oct 2010 02:44:00 +0000 (02:44 +0000)]
Correct Comments.

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

11 years agoFix build break when doing 32-bit build with some certain C compiler option combinations.
rsun3 [Thu, 28 Oct 2010 02:01:43 +0000 (02:01 +0000)]
Fix build break when doing 32-bit build with some certain C compiler option combinations.

Use the library functions for shift operations in BaseLib for a 64-bit integer where the code is shared for 32-bit and 64-bit.
Defining bitfields in structures with > 32 bits will cause these types of issues on IA32 builds. So the largest bitfield should be type UINT32 with a max size of :32.

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

11 years agoRefine code to remove type converting warning.
ydong10 [Tue, 26 Oct 2010 07:52:31 +0000 (07:52 +0000)]
Refine code to remove type converting warning.

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

11 years agoCorrect Data type conversion.
lgao4 [Tue, 26 Oct 2010 03:28:44 +0000 (03:28 +0000)]
Correct Data type conversion.

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

11 years agopass build for IPF.
vanjeff [Tue, 26 Oct 2010 03:07:33 +0000 (03:07 +0000)]
pass build for IPF.

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

11 years agoUpdate HiiDatabase->ExportPackageLists() service to support NULL HII handle per...
lgao4 [Mon, 25 Oct 2010 11:12:15 +0000 (11:12 +0000)]
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

11 years agoReserve one column at left screen to be more visually.
lgao4 [Mon, 25 Oct 2010 05:35:56 +0000 (05:35 +0000)]
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

11 years agoFix the following three issues:
lgao4 [Mon, 25 Oct 2010 05:32:17 +0000 (05:32 +0000)]
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

11 years agoFix a cut-n-paste error in the comment for the "read keystroke" function.
darylm503 [Sun, 24 Oct 2010 22:03:38 +0000 (22:03 +0000)]
Fix a cut-n-paste error in the comment for the "read keystroke" function.

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

11 years agoDuetPkg: Use UefiCpuPkg/CpuDxe instead of DuetPkg/CpuDxe
jljusten [Fri, 22 Oct 2010 01:08:16 +0000 (01:08 +0000)]
DuetPkg: Use UefiCpuPkg/CpuDxe instead of DuetPkg/CpuDxe

UefiCpuPkg/CpuDxe provides all the critical features
needed for DUET.  Therefore, to reduce code duplication,
DUET can use the generic UEFI CPU DXE driver.

The one notable lost feature is that DUET's CPU DXE would
call legacy video INT 10 to make sure the exception information
could be displayed on the screen.

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

11 years agoDuetPkg: Add DXE APRIORI for 8259 driver
jljusten [Fri, 22 Oct 2010 01:07:58 +0000 (01:07 +0000)]
DuetPkg: Add DXE APRIORI for 8259 driver

DUET's CpuDxe driver is directly dependent on the 8259.  This
forces the 8259 driver to run before the CPU DXE driver.  This
is required so the 8259 driver will initialize and mask all
8259 interrupts before the CPU DXE driver allows interrupts
to be enabled.

The UefiCpuPkg CPU DXE driver is not dependent on the 8259
directly.  Therefore, in order to use the UefiCpuPkg CPU DXE
driver with DUET, we add the APRIORI file to force the 8259
driver to run early before the CPU DXE driver runs.

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

11 years agoUefiCpuPkg CpuDxe: Fix bug with CPU Arch RegisterInterruptHandler
jljusten [Fri, 22 Oct 2010 01:07:48 +0000 (01:07 +0000)]
UefiCpuPkg CpuDxe: Fix bug with CPU Arch RegisterInterruptHandler

The change in r10765 introduced an issue where inherited interrupt
handlers would override the driver's RegisterInterruptHandler
functionality.

DUET installs a IDT with 256 entries early in it's boot.  Therefore,
no interrupt handlers could be installed with DUET while using
UefiCpuPkg/CpuDxe (instead of DuetPkg/CpuDxe).

This change forces the IDT to be modified when RegisterInterruptHandler
is called to ensure the UEFI handler will be installed properly.

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

11 years agoUse the correct length to copy KeyData.
niruiyu [Thu, 21 Oct 2010 01:49:28 +0000 (01:49 +0000)]
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

11 years agoUse the correct length to copy KeyData.
niruiyu [Thu, 21 Oct 2010 01:49:05 +0000 (01:49 +0000)]
Use the correct length to copy KeyData.

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

11 years agoFix build issue in IPv4.
qianouyang [Wed, 20 Oct 2010 12:19:06 +0000 (12:19 +0000)]
Fix build issue in IPv4.

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

11 years agoAdd static type cast to fix ICC build failure.
niruiyu [Wed, 20 Oct 2010 09:38:35 +0000 (09:38 +0000)]
Add static type cast to fix ICC build failure.

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

11 years agoRefine code to make code run safely.
ydong10 [Tue, 19 Oct 2010 09:31:16 +0000 (09:31 +0000)]
Refine code to make code run safely.

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

11 years agoreturn EFI_DEVICE_ERROR if the Status value is not EFI_SUCCESS.
erictian [Tue, 19 Oct 2010 02:55:16 +0000 (02:55 +0000)]
return EFI_DEVICE_ERROR if the Status value is not EFI_SUCCESS.
it's because BlockIo.Reset() only has two possible values: EFI_SUCCESS and EFI_DEVICE_ERROR according to UEFI2.3 spec

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

11 years agoRefine code to make code run more safely.
ydong10 [Mon, 18 Oct 2010 11:33:26 +0000 (11:33 +0000)]
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

11 years agoUpdate UefiDriverEntryPoint library by adding BaseLib library class required by AutoG...
lgao4 [Mon, 18 Oct 2010 09:59:55 +0000 (09:59 +0000)]
Update UefiDriverEntryPoint library by adding BaseLib library class required by AutoGen code.
Update UefiApplicationEntryPoint library by adding BaseLib and DebugLib library class required by AutoGen code.

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

11 years agoset the interface of usb hid device to boot protocol if it's not in such case.
erictian [Mon, 18 Oct 2010 07:54:33 +0000 (07:54 +0000)]
set the interface of usb hid device to boot protocol if it's not in such case.

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

11 years agoUpdate EdkShellBinPkg to integrate a bug fix in Shell r45
qhuang8 [Mon, 18 Oct 2010 03:58:12 +0000 (03:58 +0000)]
Update EdkShellBinPkg to integrate a bug fix in Shell r45

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

11 years agoDuetPkg DxeIpl: Send result of PrintValue to serial port
jljusten [Sat, 16 Oct 2010 18:51:32 +0000 (18:51 +0000)]
DuetPkg DxeIpl: Send result of PrintValue to serial port

PrintValue now uses PrintString so its result will be sent to
the serial port in addition to the screen.

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

11 years agoDuetPkg: Move EfiLdr Handoff data to stack
jljusten [Sat, 16 Oct 2010 18:51:21 +0000 (18:51 +0000)]
DuetPkg: Move EfiLdr Handoff data to stack

The EfiLdr image may be overwritten later in the boot process.
This can lead to the Handoff structure being corrupted before
DxeIpl is finished with it.

To help prevent this, we move the Handoff structure to the
stack, and in DxeIpl make a copy of it.

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

11 years agoDuetPkg: Send EfiLdr messages to serial port
jljusten [Sat, 16 Oct 2010 18:51:09 +0000 (18:51 +0000)]
DuetPkg: Send EfiLdr messages to serial port

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

11 years agoDuetPkg: Add build32.sh and build64.sh
jljusten [Sat, 16 Oct 2010 18:50:55 +0000 (18:50 +0000)]
DuetPkg: Add build32.sh and build64.sh

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

11 years agoDuetPkg CreateBootDisk.sh: Enable building a DUET floppy image
jljusten [Sat, 16 Oct 2010 18:50:43 +0000 (18:50 +0000)]
DuetPkg CreateBootDisk.sh: Enable building a DUET floppy image

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

11 years agoDuetPkg PostBuild.sh: Use EDK_TOOLS_PATH if defined
jljusten [Sat, 16 Oct 2010 18:50:33 +0000 (18:50 +0000)]
DuetPkg PostBuild.sh: Use EDK_TOOLS_PATH if defined

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

11 years agoDuetPkg: Fix EFIAPI usage inconsistencies
jljusten [Sat, 16 Oct 2010 18:50:16 +0000 (18:50 +0000)]
DuetPkg: Fix EFIAPI usage inconsistencies

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

11 years agoUpdate to support Xcode 64-bit debug.
andrewfish [Fri, 15 Oct 2010 17:37:00 +0000 (17:37 +0000)]
Update to support Xcode 64-bit debug.

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

11 years agoFix minor gcc build break.
andrewfish [Fri, 15 Oct 2010 17:04:09 +0000 (17:04 +0000)]
Fix minor gcc build break.

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

11 years agoRefile code to make code following the UEFI spec.
ydong10 [Fri, 15 Oct 2010 06:50:55 +0000 (06:50 +0000)]
Refile code to make code following the UEFI spec.

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

11 years agoUpdate IPsec.h file to follow approved ECR which will be collected into future UEFI...
qianouyang [Fri, 15 Oct 2010 05:40:41 +0000 (05:40 +0000)]
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

11 years agoSync EDKII BaseTools to BaseTools project r2068.
lgao4 [Thu, 14 Oct 2010 06:30:37 +0000 (06:30 +0000)]
Sync EDKII BaseTools to BaseTools project r2068.

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

11 years agoUpdate ConPlatform driver to support GOP driver which creates multiple children.
niruiyu [Thu, 14 Oct 2010 04:49:31 +0000 (04:49 +0000)]
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

11 years agofix 32bit build warning
erictian [Thu, 14 Oct 2010 01:33:04 +0000 (01:33 +0000)]
fix 32bit build warning

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

11 years agoUnixPkg: Allow build.sh/build64.sh to be run from the edk2 root
jljusten [Wed, 13 Oct 2010 23:02:14 +0000 (23:02 +0000)]
UnixPkg: Allow build.sh/build64.sh to be run from the edk2 root

You can now use this sequence to build UnixPkg:
$ cd /path/to/edk2
$ UnixPkg/build.sh
   or
$ UnixPkg/build64.sh

The old method is still valid:
$ cd /path/to/edk2/UnixPkg
$ ./build.sh

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

11 years agoUnixPkg MiscSubClassPlatformDxe: Add en-US langdef to *.uni
jljusten [Wed, 13 Oct 2010 23:02:02 +0000 (23:02 +0000)]
UnixPkg MiscSubClassPlatformDxe: Add en-US langdef to *.uni

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

11 years agoDuetPkg, MdeModulePkg: Fix several enum comparions
jljusten [Wed, 13 Oct 2010 07:08:29 +0000 (07:08 +0000)]
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

11 years agoMdePkg: Use builtin offsetof function for GCC 4.0 and newer
jljusten [Wed, 13 Oct 2010 07:08:06 +0000 (07:08 +0000)]
MdePkg: Use builtin offsetof function for GCC 4.0 and newer

GCC 4.0 and newer have a builtin function for implementing
'offsetof' therefore we make use of it for our OFFSET_OF
macro.

References:
http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Offsetof.html
http://gcc.gnu.org/onlinedocs/gcc-4.5.1/gcc/Offsetof.html

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

11 years agoEdkCompatibilityPkg: Re-add VA_COPY macro
jljusten [Wed, 13 Oct 2010 07:07:54 +0000 (07:07 +0000)]
EdkCompatibilityPkg: Re-add VA_COPY macro

This macro was lost in r10585.

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

11 years agoOVMF: Only enable MDEPKG_NDEBUG for RELEASE builds
jljusten [Wed, 13 Oct 2010 07:07:42 +0000 (07:07 +0000)]
OVMF: Only enable MDEPKG_NDEBUG for RELEASE builds

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

11 years agoOVMF: Support greater than 2GB of memory
jljusten [Wed, 13 Oct 2010 07:07:29 +0000 (07:07 +0000)]
OVMF: Support greater than 2GB of memory

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

11 years agoOVMF BDS: Don't call BdsLibSaveMemoryTypeInformation
jljusten [Wed, 13 Oct 2010 07:07:16 +0000 (07:07 +0000)]
OVMF BDS: Don't call BdsLibSaveMemoryTypeInformation

This call can cause a reset, and is most critical for ACPI S3/S4
resume situations.  OVMF does not support S3/S4.

OVMF does not have true non-volatile variable support, so
this call could cause a continuous reset situation in certain
scenarios.  (The BdsLibSaveMemoryTypeInformation may set an
non-volatile variable, and then reset with the assumption that
the variable will still exist during the next boot.)

Additionally, some version of QEMU appear to hang when the
port 64 reset is initiated.

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

11 years agoUnixPkg build64.sh: Build UnixPkg X64 with GCC44
jljusten [Wed, 13 Oct 2010 07:07:03 +0000 (07:07 +0000)]
UnixPkg build64.sh: Build UnixPkg X64 with GCC44

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

11 years agoUnixPkg SEC: Fix link flags for using GCC on Linux x86-64
jljusten [Wed, 13 Oct 2010 07:06:53 +0000 (07:06 +0000)]
UnixPkg SEC: Fix link flags for using GCC on Linux x86-64

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

11 years agoUnixPkg: Enable gasket functions for all X64 toolchains
jljusten [Wed, 13 Oct 2010 07:06:42 +0000 (07:06 +0000)]
UnixPkg: Enable gasket functions for all X64 toolchains

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

11 years agoUnixPkg: Added missing EFIAPI for many Gasket functions
jljusten [Wed, 13 Oct 2010 07:06:28 +0000 (07:06 +0000)]
UnixPkg: Added missing EFIAPI for many Gasket functions

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