ydong10 [Thu, 8 Mar 2012 02:54:06 +0000 (02:54 +0000)]
Override the base address to make LoadLibraryEx success in WIN7 SP1 OS. Signed-off-by: ydong10 Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13088 6f19259b-4bc3-4df7-8a09-765794883524
erictian [Wed, 7 Mar 2012 08:39:35 +0000 (08:39 +0000)]
MdeModulePkg: add support for ORICO PEUS3-2P card
1) Fix a bug on missing hub context evaluation operation.
2) If the usb keyboard device configuration has been set successfully, then don’t set configuration again.
erictian [Tue, 6 Mar 2012 09:34:14 +0000 (09:34 +0000)]
MdeModulePkg: When media_change happens at Partition.Start(), the lower driver (ScsiDisk) should immediately return EFI_MEDIA_CHANGE but not EFI_SUCCESS. This way is used to avoid the interrupted Partition.Start() closes those opened protocols(DiskIo and DevicePath protocol) who are using by the re-entered partition driver at the same handle.
lpleahy [Mon, 5 Mar 2012 19:05:47 +0000 (19:05 +0000)]
Fix read issue detected by the following Python program. The issue was that the caller's buffer pointer was not being advanced between segments of the read data.
li-elvin [Thu, 1 Mar 2012 11:16:42 +0000 (11:16 +0000)]
When CSM uses EFI_SEGMENT and EFI_OFFSET to call CSM16 function, some CSM16 use es:[offset + 0xabcd] to get data passed from CSM32, offset + 0xabcd could exceed 0xFFFF which is invalid in real mode. So added NORMALIZE_EFI_SEGMENT and NORMALIZE_EFI_OFFSET to keep offset as small as possible to avoid this issue during CSM16 function call.
oliviermartin [Wed, 29 Feb 2012 17:19:52 +0000 (17:19 +0000)]
ArmPlatformPkg/PL011Uart: Allowed to change UART settings in its initialization function
Because this driver can be used for different purposes (Terminal, Debug port, communication),
its initialization function has been extended to accept additional settings.
lgao4 [Wed, 29 Feb 2012 04:56:53 +0000 (04:56 +0000)]
Fix the issue in PeiCore to support PDB file path without '\' or '.' character. Signed-off-by: lgao4 Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13069 6f19259b-4bc3-4df7-8a09-765794883524
lgao4 [Wed, 29 Feb 2012 04:56:26 +0000 (04:56 +0000)]
Add sample code to show how to register Browser HotKey by BrowserEx protocol. Signed-off-by: lgao4 Reviewed-by: ydong10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13068 6f19259b-4bc3-4df7-8a09-765794883524
oliviermartin [Tue, 28 Feb 2012 17:32:47 +0000 (17:32 +0000)]
ArmPlatformPkg/NorFlashDxe: Fixed CFI NOR Flash driver
CFI Flash differentiates DeviceBaseAddress with BlockAddress in
its protocol. The DeviceBaseAddress was not considered in the
previous version of this driver.
This version also fixes some bugs in the implementation of the
CFI protocol.
This new version also uses the Boot Mode Hob to reinitialized the
FVB when Boot Mode is equal to BOOT_WITH_DEFAULT_SETTINGS.
oliviermartin [Tue, 28 Feb 2012 17:28:44 +0000 (17:28 +0000)]
ArmPlatformPkg/Sec: Fix transition to Trusted Monitor World with ARMGCC
The enter_monitor_world() function was trashing r0/r1/r2 registers and then
was returning back to 'C'. The compiler might have used these registers in the C code.
These new design prevents register corruptions.
oliviermartin [Tue, 28 Feb 2012 17:23:53 +0000 (17:23 +0000)]
ArmPlatformPkg: Updated the stack setup to have the same geometry between the Secure and Normal World
Having a similar setup reduces the error during the MPCore stack setup.
The stack setup is described on this wikipage:
https://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg/Stack
oliviermartin [Tue, 28 Feb 2012 17:22:13 +0000 (17:22 +0000)]
ArmPlatformPkg/PrePi: Fixed stack setup when System Memory is mapped upto 0xFFFFFFFF
The stacks must be 32-bit aligned (which is not the case of 0xFFFFFFFF).
This change ensures the stacks are setup properperly in case the system
memory is available at 0xFFFFFFFF.
oliviermartin [Mon, 27 Feb 2012 10:23:08 +0000 (10:23 +0000)]
ArmPkg/ArmArchTimerLib: Renamed the constructor to 'TimerConstructor()'
Some ARM Platform components (ie: PrePei) use this constructor name to
initialize the timers (at this time there is no PE loader to call the
library constructors) when PI/UEFI is started to initialize the
PerformanceLib.
lgao4 [Mon, 27 Feb 2012 07:46:04 +0000 (07:46 +0000)]
Update the modifier of ThunkContext parameter for AsmPrepareThunk16() in BaseLib from OUT to IN OUT. Signed-off-by: lgao4 Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13038 6f19259b-4bc3-4df7-8a09-765794883524
rsun3 [Wed, 22 Feb 2012 02:39:57 +0000 (02:39 +0000)]
MdePkg: Add a new macro VA_COPY for variable argument support. Fix a bug in the UefiLib instance that there is a non portable assumption that Marker is copied when passed to a function.
lpleahy [Fri, 17 Feb 2012 23:43:35 +0000 (23:43 +0000)]
* StdLib.dsc was changed to always build the sockets code.
* Fix errors detected by the GCC compiler (pointer conversions and format mismatches).
* Worked around a GCC flow analysis issue in base64.c where the compiler is convinced that there is a path through the code where "input" is used but not initialized.
* Added EFIAPI to the file system operation routines for sockets to match the API declaration.
Note for GCC, the meaning of "l" and "L" are different in printf and sscanf format strings. The lower case "l" indicates a 32-bit value where the capital "L" indicates a 64-bit value. The native (default) integer size may be represented by a size letter of "n".
lgao4 [Wed, 15 Feb 2012 08:06:01 +0000 (08:06 +0000)]
Set executable attributes for those run scripts. Signed-off-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13016 6f19259b-4bc3-4df7-8a09-765794883524
ydong10 [Wed, 15 Feb 2012 02:40:18 +0000 (02:40 +0000)]
Enable write file to USB from Shell in Win7 OS Signed-off-by: ydong10 Reviewed-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13013 6f19259b-4bc3-4df7-8a09-765794883524
lpleahy [Thu, 9 Feb 2012 19:18:06 +0000 (19:18 +0000)]
Merged socket development branch:
* Add TCPv6 support to DataSink
* Add TCPv6 support to DataSource
* Add GetAddrInfo test application
* Add GetNameInfo test application
* Fixed copyright date
* Completed TFTP server - now downloads files from local directory
* Added ports and exit pages to web server
* Made PCD values package specific
lpleahy [Thu, 9 Feb 2012 19:16:44 +0000 (19:16 +0000)]
Merged socket development branch:
* Fixed bug report (Duane Voth: Python sockets test application not working) by starting the receive operations when a connection is established!
* Increased performance by extending the idle loop into the network stack with the Poll call.
* Added support for TCPv6 (SOCK_STREAM) and UDPv6 (SOCK_DGRAM).
* Added support for getaddrinfo and getnameinfo calls.
* Moved application PCD values into AppPkg
oliviermartin [Thu, 9 Feb 2012 15:25:40 +0000 (15:25 +0000)]
ArmPkg/BdsLib: Load initrd next to the Linux kernel to allow to reduce the memory from the Linux command line
The initrd was loaded at the top of the UEFI System Memory. By consequence, if the system memory
was reduced by the Linux command line then the initrd was not part of the system memory.
niruiyu [Tue, 7 Feb 2012 01:58:30 +0000 (01:58 +0000)]
Generic solution to handle reset failure in some special platforms.
Upon receiving RESET packet from HOST side, TARGET either sends OK packet and resets, or sends OK packet followed by TIMEOUT packet in 2 seconds indicating the reset failure.
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.