darylm503 [Wed, 1 Feb 2012 00:17:05 +0000 (00:17 +0000)]
StdLib: Fix compiler compatibility issues:
tcp.h: Fix packed structure syntax. cdefs.h is not included so the existing __packed attribute was not properly expanded. Non-GCC compilers were also not handled correctly. Changing to the pack(n) pragma is compatible between all supported compilers.
SysCalls.c: The utimes() function has a fixed number of arguments and calls a function that takes a va_list argument. GCC will not allow the va_start, etc., macros to be used in a function with a fixed number of arguments, even though that is valid C. The workaround was to create a worker function for utimes() that takes a variable number of arguments. The worker function then uses the va_* macros.
ydong10 [Tue, 31 Jan 2012 08:08:10 +0000 (08:08 +0000)]
Update the code to follow the spec when evaluate the expression. Signed-off-by: ydong10 Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12973 6f19259b-4bc3-4df7-8a09-765794883524
andrewfish [Tue, 31 Jan 2012 00:18:25 +0000 (00:18 +0000)]
Fix type 19 print to match SBMIOS 2.7.
Note: Some one should port smbiosview to use the edk2 MdePkg/Include/IndustryStandard/SmBios.h and not carry it's own definitions, that are now out of date.
rsun3 [Fri, 13 Jan 2012 06:29:44 +0000 (06:29 +0000)]
DuetPkg BootSector: fix bugs in .S files so that 32-bit and 64-bit DUET can boot to Shell with boot sector binaries built by GCC.
There is also a bug in bs32.asm/bs32.S that the space between the code and the 0xAA55 ending signature is not enough to hold the 2 debug strings. It is fixed by shortening the strings.
ydong10 [Thu, 12 Jan 2012 05:32:59 +0000 (05:32 +0000)]
Add check when get boot option variable to avoid system hang. Signed-off-by: ydong10 Reviewed-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12927 6f19259b-4bc3-4df7-8a09-765794883524
andrewfish [Wed, 11 Jan 2012 19:00:26 +0000 (19:00 +0000)]
Fix bug in SNP driver where default values for SNP mode are not filled in. This causes ARP and other drivers to fail to bind as they don't think it is an ethernet connection. Mode structure is filled via lazy update, so defaults need some genericly valid info, not zero.
oliviermartin [Thu, 29 Dec 2011 12:16:02 +0000 (12:16 +0000)]
BeagleBoard: Allow to overwrite the default toolchain
Each OS has its own default EDK2 toolchain. This change allows to overwrite
this default option.
Example: On Linux the default toolchain is ARMLINUXGCC, this command line can overwrite it:
TARGET_TOOLS=ARMGCC ./build.sh
lgao4 [Wed, 28 Dec 2011 09:48:15 +0000 (09:48 +0000)]
Roll back the previous change in MdePkg BaseLib Ia32 Thunk16.S and EcpPkg GlueLib BaseLib Ia32 Thunk16.S, and still use the hard code offset in them to avoid GCC compiler create the unexpected instruction.
ydong10 [Thu, 22 Dec 2011 06:31:40 +0000 (06:31 +0000)]
Patch includes:
1.Update question value after BDS change code to avoid save invalid data.
2.Fix a corner case bug that may cause unexpected popup when changing the legacy device order. Signed-off-by: ydong10 Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12892 6f19259b-4bc3-4df7-8a09-765794883524
rsun3 [Thu, 22 Dec 2011 02:56:28 +0000 (02:56 +0000)]
MdeModulePkg PCI Bus Driver: Remove the workaround for the EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO and EFI_PCI_IO_ATTRIBUTE_VGA_IO attributes to follow the UEFI spec.
lgao4 [Tue, 20 Dec 2011 09:50:19 +0000 (09:50 +0000)]
Clean up the hard code offset in MdePkg BaseLib Ia32 Thunk16.S and EcpPkg GlueLib BaseLib Ia32 Thunk16.S. Signed-off-by: lgao4 Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12889 6f19259b-4bc3-4df7-8a09-765794883524
lgao4 [Mon, 19 Dec 2011 09:00:58 +0000 (09:00 +0000)]
Add more check to make sure the valid pointer be used. Signed-off-by: lgao4 Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12886 6f19259b-4bc3-4df7-8a09-765794883524
ydong10 [Mon, 19 Dec 2011 06:57:49 +0000 (06:57 +0000)]
Update the process of some question from EFI_BROWSER_ACTION_CHANGED to EFI_BROWSER_ACTION_CHANGING. Signed-off-by: ydong10 Reviewed-by: gdong1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12885 6f19259b-4bc3-4df7-8a09-765794883524
andrewfish [Thu, 15 Dec 2011 22:26:15 +0000 (22:26 +0000)]
Add a PcdEmulatorLazyLoadSymbols that allows non-lazy symbol loading. The problem with lazy symbol loading is it only happens after you hit a breakpoint. This means you can't add breakpoints from the GUI and have them hit, this requires symbols being loaded as modules load so the breakpoints can get resolved.
Added arguments to SecGdbScriptBreak() to enable lldb python symbol load/unload script.
lgao4 [Thu, 15 Dec 2011 06:56:57 +0000 (06:56 +0000)]
Update PcdSetPtr() API to set the output buffer size to the max buffer size when the input buffer size is larger than the max buffer size. This behavior follows API description.
lgao4 [Thu, 15 Dec 2011 06:50:54 +0000 (06:50 +0000)]
Enhance DXE dispatcher logic to check the duplicated FV image bases on FvHob2 and FvNameGuid per PI spec. Signed-off-by: lgao4 Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12874 6f19259b-4bc3-4df7-8a09-765794883524
rsun3 [Thu, 15 Dec 2011 06:13:46 +0000 (06:13 +0000)]
MdePkg: Per PI 1.2 Errata C, update the function description of SetMemorySpaceAttributes() DXE Service to add a new returned status code EFI_NOT_AVAILABLE_YET.
ydong10 [Thu, 15 Dec 2011 02:59:03 +0000 (02:59 +0000)]
Update for SecurityPkg.
Per UEFI spec, on CallBack action EFI_BROWSER_ACTION_CHANGING, the return value of ActionRequest will be ignored, but on CallBack action EFI_BROWSER_ACTION_CHANGED, the return value of ActionRequest will be used.
But, EDKII browser still processes the got ActionRequest. And, all HII drivers in EDKII project also returns their expected ActionRequest value on action EFI_BROWSER_ACTION_CHANGING.
Now update the browser to follow the spec, and update all core Hii drivers to keep old working modal.
ydong10 [Thu, 15 Dec 2011 02:57:46 +0000 (02:57 +0000)]
Update for NetworkPkg.
Per UEFI spec, on CallBack action EFI_BROWSER_ACTION_CHANGING, the return value of ActionRequest will be ignored, but on CallBack action EFI_BROWSER_ACTION_CHANGED, the return value of ActionRequest will be used.
But, EDKII browser still processes the got ActionRequest. And, all HII drivers in EDKII project also returns their expected ActionRequest value on action EFI_BROWSER_ACTION_CHANGING.
Now update the browser to follow the spec, and update all core Hii drivers to keep old working modal.
ydong10 [Thu, 15 Dec 2011 02:56:46 +0000 (02:56 +0000)]
Update for IntelFrameworkModulePkg.
Per UEFI spec, on CallBack action EFI_BROWSER_ACTION_CHANGING, the return value of ActionRequest will be ignored, but on CallBack action EFI_BROWSER_ACTION_CHANGED, the return value of ActionRequest will be used.
But, EDKII browser still processes the got ActionRequest. And, all HII drivers in EDKII project also returns their expected ActionRequest value on action EFI_BROWSER_ACTION_CHANGING.
Now update the browser to follow the spec, and update all core Hii drivers to keep old working modal.
ydong10 [Thu, 15 Dec 2011 02:54:49 +0000 (02:54 +0000)]
Per UEFI spec, on CallBack action EFI_BROWSER_ACTION_CHANGING, the return value of ActionRequest will be ignored, but on CallBack action EFI_BROWSER_ACTION_CHANGED, the return value of ActionRequest will be used.
But, EDKII browser still processes the got ActionRequest. And, all HII drivers in EDKII project also returns their expected ActionRequest value on action EFI_BROWSER_ACTION_CHANGING.
Now update the browser to follow the spec, and update all core Hii drivers to keep old working modal.
lgao4 [Thu, 15 Dec 2011 02:41:50 +0000 (02:41 +0000)]
Correct one comment to match the function name. Signed-off-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12864 6f19259b-4bc3-4df7-8a09-765794883524
lgao4 [Thu, 15 Dec 2011 02:39:16 +0000 (02:39 +0000)]
Update UEFI spec version from UEFI2.3 to UEFI2.3.1 Signed-off-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12863 6f19259b-4bc3-4df7-8a09-765794883524
oliviermartin [Wed, 14 Dec 2011 10:43:36 +0000 (10:43 +0000)]
ArmPlatformPkg/ArmVExpressPkg: Add PL180 MCI support to ARM RTSM
The MMC controller is accessible through the ARM RTSM model.
A filesystem can be added on a MMC file to be accessible through the
UEFI firmware running on RTSM.
oliviermartin [Wed, 14 Dec 2011 10:22:43 +0000 (10:22 +0000)]
ArmPlatformPkg/Sec: Fixed Monitor stack setup
Because GET_CORE_POS(MpId) returns 0x0 for the primary core, the
stack position must be defined by the top of the stack. It means
stack_size must be added to the stack base.