mirror_edk2.git
10 years agoPatch from open source community for CryptoPkg to allow it to build for ARM using...
qlong [Tue, 19 Apr 2011 16:25:31 +0000 (16:25 +0000)]
Patch from open source community for CryptoPkg to allow it to build for ARM using the RVCT toolchain.

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

10 years agoFix the PS2 keyboard driver to call hotkey callback even no one is calling ReadKeyStroke
niruiyu [Tue, 19 Apr 2011 06:53:29 +0000 (06:53 +0000)]
Fix the PS2 keyboard driver to call hotkey callback even no one is calling ReadKeyStroke

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

10 years agoFix the USB keyboard driver to call hotkey callback even no one is calling ReadKeyStroke
niruiyu [Tue, 19 Apr 2011 06:52:20 +0000 (06:52 +0000)]
Fix the USB keyboard driver to call hotkey callback even no one is calling ReadKeyStroke

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

10 years agoFix the terminal driver to call hotkey callback even no one is calling ReadKeyStroke
niruiyu [Tue, 19 Apr 2011 06:51:44 +0000 (06:51 +0000)]
Fix the terminal driver to call hotkey callback even no one is calling ReadKeyStroke

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

10 years agoFix NT32 Keyboard driver to call hotkey callback even no one is calling ReadKeyStroke().
niruiyu [Tue, 19 Apr 2011 06:46:55 +0000 (06:46 +0000)]
Fix NT32 Keyboard driver to call hotkey callback even no one is calling ReadKeyStroke().

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

10 years agoUpdate the description of Loaded Image Protocol Unload function to follow the UEFI2...
lgao4 [Tue, 19 Apr 2011 06:33:25 +0000 (06:33 +0000)]
Update the description of Loaded Image Protocol Unload function to follow the UEFI2.3.1 Spec.

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

10 years agoUpdate IFR version opcode value to follow the UEFI2.3.1 Spec.
lgao4 [Tue, 19 Apr 2011 06:32:27 +0000 (06:32 +0000)]
Update IFR version opcode value to follow the UEFI2.3.1 Spec.

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

10 years agoUpdate ALTCFG reference from default name token to default ID.
ydong10 [Tue, 19 Apr 2011 03:04:06 +0000 (03:04 +0000)]
Update ALTCFG reference from default name token to default ID.

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

10 years agoOvmfPkg/*.fdf: Adjust FV/FD sizes for UNIXGCC DEBUG builds
jljusten [Sun, 17 Apr 2011 05:47:43 +0000 (05:47 +0000)]
OvmfPkg/*.fdf: Adjust FV/FD sizes for UNIXGCC DEBUG builds

In some configurations the UNIXGCC build will run out of
space when a DEBUG build is enabled.  This change adjusts
the flash configuration a bit to allow the build succeed
on UNIXGCC.

The final flash image still remains 1MB in size.

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

10 years agoOptionRomPkg: Fix build error with BaseTools trunk
jljusten [Sun, 17 Apr 2011 05:47:30 +0000 (05:47 +0000)]
OptionRomPkg: Fix build error with BaseTools trunk

Fix build error with BaseTools trunk.  LibraryClasses
should be used instead of Libraries.

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

10 years agoOptionRomPkg: Fix Visual Studio compiler warnings
jljusten [Sun, 17 Apr 2011 05:47:13 +0000 (05:47 +0000)]
OptionRomPkg: Fix Visual Studio compiler warnings

These changes fix compiler warnings with Visual Studio 2005.

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

10 years agofix for word wrapping.
jcarsey [Fri, 15 Apr 2011 18:20:40 +0000 (18:20 +0000)]
fix for word wrapping.
fix for SimpleTextInEx callbacks.
remove an ASSERT.
fix for -noconsolein parameter.

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

10 years agoUpdate the comments for SizeofPartitionEntry field to follow the UEFI Spec.
niruiyu [Thu, 14 Apr 2011 07:04:59 +0000 (07:04 +0000)]
Update the comments for SizeofPartitionEntry field to follow the UEFI Spec.

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

10 years agochange file global variable to function local.
jcarsey [Wed, 13 Apr 2011 23:37:50 +0000 (23:37 +0000)]
change file global variable to function local.

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

10 years agorm - refine user input validation to prevent removal of CWD.
jcarsey [Wed, 13 Apr 2011 23:37:21 +0000 (23:37 +0000)]
rm - refine user input validation to prevent removal of CWD.

change colors of "set" command output.

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

10 years agomove a function to the correct library.
jcarsey [Wed, 13 Apr 2011 23:35:59 +0000 (23:35 +0000)]
move a function to the correct library.

added "ren" as an alias for "mv"

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

10 years agofix misspelling.
jcarsey [Wed, 13 Apr 2011 23:35:16 +0000 (23:35 +0000)]
fix misspelling.

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

10 years agoDo not assert in HiiBlockToConfig function when an invalid format of ConfigRequest...
ydong10 [Wed, 13 Apr 2011 03:13:13 +0000 (03:13 +0000)]
Do not assert in HiiBlockToConfig function when an invalid format of ConfigRequest is inputed, just return error.

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

10 years agoupdate Bcfg to correctly remove by option index not variable name and add driver...
jcarsey [Tue, 12 Apr 2011 21:55:07 +0000 (21:55 +0000)]
update Bcfg to correctly remove by option index not variable name and add driver order items properly.

update connect and reconnect to account for ignoring the child handle in the connect operation.

update disconnect to output correctly.

hexedit corrected to properly display status bar and title bar and refresh when required.

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

10 years agoOvmfPkg: Add QemuVideoDxe driver
jljusten [Tue, 12 Apr 2011 15:08:51 +0000 (15:08 +0000)]
OvmfPkg: Add QemuVideoDxe driver

This driver provides a UEFI Graphics Output Protocol (GOP) driver
for the QEMU Cirrus VGA hardware.  It enables 24-bit color,
and uses the standard 32-bit GOP pixel format whenever possible.

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

10 years agoOptionRomPkg BltLibSample: Add sample application for BltLib
jljusten [Tue, 12 Apr 2011 15:08:26 +0000 (15:08 +0000)]
OptionRomPkg BltLibSample: Add sample application for BltLib

This application uses BltLib to draw various items on the
screen.  It can be used as a test for a BltLib library
implementation, and it can be used to compare the results of
two BltLib implementations (such as the performance).

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

10 years agoOptionRomPkg: Add GOP based BltLib
jljusten [Tue, 12 Apr 2011 15:08:08 +0000 (15:08 +0000)]
OptionRomPkg: Add GOP based BltLib

This BltLib provides a wrapper for calling the UEFI Graphics
Output Protocol (GOP) functions for a single GOP instance.

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

10 years agoOptionRomPkg: Add FrameBufferBltLib implementation of BltLib
jljusten [Tue, 12 Apr 2011 15:07:52 +0000 (15:07 +0000)]
OptionRomPkg: Add FrameBufferBltLib implementation of BltLib

This BltLib implementation will act on the BltLib functions by
directly manipulating a memory framebuffer.  Therefore, it
should be usable by a Graphics Output Protocol (GOP) driver
to easily implement the GOP Blt function whenever a memory
framebuffer is available.

It can also be used in any situation where code would prefer to
not call the GOP Blt function, and would rather update the
framebuffer directly.  (Assuming a framebuffer is available
for the graphics device.)

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

10 years agoOptionRomPkg: Add BltLib definition
jljusten [Tue, 12 Apr 2011 15:07:34 +0000 (15:07 +0000)]
OptionRomPkg: Add BltLib definition

This library is intended to make it easy to perform blt operations
on a GOP framebuffer without using the GOP Blt function.

There can be two main forms of implementations of this library:
1) A library which interfaces directly with a framebuffer, and
   has no dependence on the GOP protocol.  Once configured with
   the framebuffer parameters, it can operate directly on the
   framebuffer.
2) A library which interfaces with the GOP protocol.  In this
   case this library provides a convenience layer and allows
   blt code to look cleaner.

Potential uses for this library:
* Video driver with a framebuffer will not need to implement
  GOP Blt function itself.  Instead it can utilize an
  implementation of this library as described in #1 above.
* OS Loader code which would like to easily use the GOP framebuffer
  after Exit Boot Services.  This would use a library instance
  as described in #1 above.
* Any other code which would like to call GOP blt, but simplify
  the code with the more convenient functions provided by this
  library interface.  (Using a library as described in #2 above.)

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

10 years agoShellPkg: Fix GCC 4.4 build issues
jljusten [Tue, 12 Apr 2011 03:18:38 +0000 (03:18 +0000)]
ShellPkg: Fix GCC 4.4 build issues

This change fixes various GCC 4.4 build issues
* EFIAPI usage inconsistencies
* multi-character literal warning ('eell')
* Filename case inconsistencies
* Use 'ULL' suffix for integers > 4GB

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

10 years agoOld driver sample code does not return an EFI_UNSUPPORTED status code if a callback...
ydong10 [Tue, 12 Apr 2011 01:15:28 +0000 (01:15 +0000)]
Old driver sample code does not return an EFI_UNSUPPORTED status code if a callback occurs for something which is unrecognized.
Now any call back type except:EFI_BROWSER_ACTION_FORM_OPEN, EFI_BROWSER_ACTION_FORM_CLOSE, EFI_BROWSER_ACTION_FROM_RETRIEVE and EFI_BROWSER_ACTION_FORM_CHANGING, all return EFI_UNSUPPORTED.

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

10 years agoEditTitleBar - Remove ASSERT. Complete display output for Disk and Memory output.
jcarsey [Mon, 11 Apr 2011 22:00:31 +0000 (22:00 +0000)]
EditTitleBar - Remove ASSERT.  Complete display output for Disk and Memory output.
HexEdit      - Add more user input verification.  Fix output display.

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

10 years agoSet EXECUTE flags in so RELEASE builds can tun correctly.
mdkinney [Mon, 11 Apr 2011 00:13:56 +0000 (00:13 +0000)]
Set EXECUTE flags in so RELEASE builds can tun correctly.

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

10 years agoNew EDK Shell binary(r51)
niruiyu [Sat, 9 Apr 2011 01:15:01 +0000 (01:15 +0000)]
New EDK Shell binary(r51)

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

10 years agoAdd more checks to skip allocated SMRAM regions when searching for a largest free...
rsun3 [Fri, 8 Apr 2011 05:29:22 +0000 (05:29 +0000)]
Add more checks to skip allocated SMRAM regions when searching for a largest free SMRAM region.

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

10 years agoFix Xcode, clang, and ARM build and link issues.
andrewfish [Thu, 7 Apr 2011 21:50:16 +0000 (21:50 +0000)]
Fix Xcode, clang, and ARM build and link issues.

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

10 years agoadd user input verification.
jcarsey [Thu, 7 Apr 2011 21:44:09 +0000 (21:44 +0000)]
add user input verification.

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

10 years agoShellParametersProtocol - remove parsing from within quoted parameters.
jcarsey [Thu, 7 Apr 2011 17:12:12 +0000 (17:12 +0000)]
ShellParametersProtocol - remove parsing from within quoted parameters.
Pci - Add missing enumeration in switch statement.
For - Verify parameter before dereferencing.

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

10 years agoFix ICC build error.
tye1 [Thu, 7 Apr 2011 04:50:58 +0000 (04:50 +0000)]
Fix ICC build error.

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

10 years agoAdd assertion check for TmpString against NULL.
niruiyu [Thu, 7 Apr 2011 02:02:21 +0000 (02:02 +0000)]
Add assertion check for TmpString against NULL.

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

10 years agoAdd (UINT16) static cast before passing UINT32 parameter to CreateDeviceNode
niruiyu [Thu, 7 Apr 2011 02:01:22 +0000 (02:01 +0000)]
Add (UINT16) static cast before passing UINT32 parameter to CreateDeviceNode

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

10 years agoUpdate ISID to fixed value: first 3 bytes are derived from MAC address while the...
tye1 [Wed, 6 Apr 2011 07:19:38 +0000 (07:19 +0000)]
Update ISID to fixed value: first 3 bytes are derived from MAC address while the other 3 bytes are configurable via ISCSI configuration.

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

10 years agoadd some parens.
jcarsey [Tue, 5 Apr 2011 21:19:39 +0000 (21:19 +0000)]
add some parens.

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

10 years agoadd comments to function declarations and definitions and updated to match coding...
jcarsey [Tue, 5 Apr 2011 20:55:45 +0000 (20:55 +0000)]
add comments to function declarations and definitions and updated to match coding style document.

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

10 years agorename a file.
jcarsey [Tue, 5 Apr 2011 20:18:03 +0000 (20:18 +0000)]
rename a file.

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

10 years agocheck memory allocations for success.
jcarsey [Mon, 4 Apr 2011 21:41:24 +0000 (21:41 +0000)]
check memory allocations for success.

check pointer before access.

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

10 years agocorrect last commit. fix build break for some compilers.
jcarsey [Mon, 4 Apr 2011 16:11:07 +0000 (16:11 +0000)]
correct last commit.  fix build break for some compilers.

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

10 years agofix build break on some compilers.
jcarsey [Mon, 4 Apr 2011 16:05:53 +0000 (16:05 +0000)]
fix build break on some compilers.

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

10 years agoremove duplicate memory de-allocation.
jcarsey [Fri, 1 Apr 2011 22:19:02 +0000 (22:19 +0000)]
remove duplicate memory de-allocation.

Add function header comment.

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

10 years agoComment's added and fixed.
jcarsey [Fri, 1 Apr 2011 22:16:01 +0000 (22:16 +0000)]
Comment's added and fixed.

Pointer's checked for NULL before access and after memory allocations.

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

10 years agofix initialization of pointer.
jcarsey [Fri, 1 Apr 2011 16:11:59 +0000 (16:11 +0000)]
fix initialization of pointer.

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

10 years agoUse the minimum value for Numeric and the first option value for OneOf as their defau...
lgao4 [Fri, 1 Apr 2011 09:39:11 +0000 (09:39 +0000)]
Use the minimum value for Numeric and the first option value for OneOf as their default value when no specific default value is specified.

HII IFR Numeric and OneOf opcode may not specify their default value in opcode. And, zero may not be valid value for them. To make sure the valid value is set to default value, the minimum value for Numeric and the first option value for OneOf will be chosen as default value.

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

10 years agoPerformancePkg.dsc:
ydong10 [Fri, 1 Apr 2011 06:30:43 +0000 (06:30 +0000)]
PerformancePkg.dsc:
1. Change FileHandleLib instance path.
2. Add SortLib used by ShellLib.

Detail:
This library instance was renamed from BaseFileHandleLib to UefiFileHandleLib in r11421.
The SortLib is added to be used by ShellLib in r11424.

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

10 years agoNetworkPkg.dsc:
ydong10 [Fri, 1 Apr 2011 06:27:16 +0000 (06:27 +0000)]
NetworkPkg.dsc:
1. Change FileHandleLib instance path.
2. Add SortLib used by ShellLib.

Detail:
This library instance was renamed from BaseFileHandleLib to UefiFileHandleLib in r11421.
The SortLib is added to be use by ShellLib in r11424.

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

10 years ago> When GetHealthStatus() returns NULL FormHiiHandle, DeviceManager shouldn't call...
niruiyu [Fri, 1 Apr 2011 05:22:18 +0000 (05:22 +0000)]
> When GetHealthStatus() returns NULL FormHiiHandle, DeviceManager shouldn't call SendForm to show the configuration form.
> Combine the multiple reset request returned by GetHealthStatus() when repairing all the controllers.
> Fix the bug that source code and VFR code use different value for DRIVER_HEALTH_FORM_ID.

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

10 years agoSet the BlockIo.Media.IoAlign to 0 because the BlockIo produced by Partition driver...
niruiyu [Fri, 1 Apr 2011 03:07:38 +0000 (03:07 +0000)]
Set the BlockIo.Media.IoAlign to 0 because the BlockIo produced by Partition driver consumes DiskIo for read/write operation which doesn't have IO alignment requirement.

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

10 years agoOvmfPkg/*.dsc: Change FileHandleLib instance path
jljusten [Thu, 31 Mar 2011 23:17:07 +0000 (23:17 +0000)]
OvmfPkg/*.dsc: Change FileHandleLib instance path

This library instance was renamed from BaseFileHandleLib
to UefiFileHandleLib in r11421.

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

10 years agoFix Xcode compile bug. It looks like these two arguments had an extra level of indire...
andrewfish [Thu, 31 Mar 2011 15:31:36 +0000 (15:31 +0000)]
Fix Xcode compile bug. It looks like these two arguments had an extra level of indirection that was in error. Good thing about extra compilers is we catch this kind of thing for almost free.

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

10 years agoArmPkg/Arm9Lib: Assert if memory region size is TT_DESCRIPTOR_SECTION_SIZE aligned
oliviermartin [Thu, 31 Mar 2011 13:06:48 +0000 (13:06 +0000)]
ArmPkg/Arm9Lib: Assert if memory region size is TT_DESCRIPTOR_SECTION_SIZE aligned

The current code does not support memory region size that is not
aligned on TT_DESCRIPTOR_SECTION_SIZE boundary.

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

10 years agoBeagleBoardPkg: Fix build
oliviermartin [Thu, 31 Mar 2011 12:59:00 +0000 (12:59 +0000)]
BeagleBoardPkg: Fix build

Add missing DebugPrintErrorLevelLib.

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

10 years agoArmPkg: Fix ArmPkg.dsc and ArmVExpress-CTA9x4.dsc builds
oliviermartin [Thu, 31 Mar 2011 12:55:48 +0000 (12:55 +0000)]
ArmPkg: Fix ArmPkg.dsc and ArmVExpress-CTA9x4.dsc builds

- There were some missing and duplicate files in ArmPkg.dsc
- PL301Axi.h was missing to build ArmVExpress-CTA9x4 build

Note: PL34xDmc has been temporary removed from ArmPkg just
the time to fix its dependency on ArmPlatform.h

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

10 years agoArmPlatformPkg/Bds: Connect all drivers if the SimpleTextIO is not available
oliviermartin [Thu, 31 Mar 2011 12:28:01 +0000 (12:28 +0000)]
ArmPlatformPkg/Bds: Connect all drivers if the SimpleTextIO is not available

If none of the Simple Text Input/Output Protocol implementations were started
before starting BDS then an exception error occured.
This fix forces to connect all the drivers if no SimpleText IO protocols are
found.

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

10 years agoArmPkg: Fix InternalMemCopyMem()
oliviermartin [Thu, 31 Mar 2011 12:26:20 +0000 (12:26 +0000)]
ArmPkg: Fix InternalMemCopyMem()

This function crashed when regions overalapped. The condition to
optimize the copy of overlapped regions was not correct.

ArmPkg: Add comments to InternalMemCopyMem()

These comments explain the flow of this assembly function.

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

10 years agoArmPkg/ArmDisassemblerLib: Fix register list
oliviermartin [Thu, 31 Mar 2011 12:24:44 +0000 (12:24 +0000)]
ArmPkg/ArmDisassemblerLib: Fix register list

'r1' register was missing from the list.

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

10 years agoArmPlatformPkg: Fix build
oliviermartin [Thu, 31 Mar 2011 12:24:08 +0000 (12:24 +0000)]
ArmPlatformPkg: Fix build

Declared DebugPrintErrorLevelLib for the ArmPlatformPkg builds.

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

10 years agoArmPlatformPkg/PrePeiCore: Fix build
oliviermartin [Thu, 31 Mar 2011 12:23:19 +0000 (12:23 +0000)]
ArmPlatformPkg/PrePeiCore: Fix build

Renamed TEMPORARY_RAM_SUPPORT_PPI into EFI_PEI_TEMPORARY_RAM_SUPPORT_PPI

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

10 years agoArmPlatformPkg/Bds: Fix build
oliviermartin [Thu, 31 Mar 2011 12:22:39 +0000 (12:22 +0000)]
ArmPlatformPkg/Bds: Fix build

Renamed BdsLinuxLib.h into BdsUnixLib.h

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

10 years agoArmPlatformPkg/ArmPlatformLib: Move the UEFI memory partionning to MemoryInitPei
oliviermartin [Thu, 31 Mar 2011 12:21:41 +0000 (12:21 +0000)]
ArmPlatformPkg/ArmPlatformLib: Move the UEFI memory partionning to MemoryInitPei

Formerly, each platform was responsible to declare the location of its UEFI memory
region (used by PEI and DXE Foundations).
The ArmPlatformLib was also declaring every region of its partitionned system memory
with a System Resource HOB.

In this new model, the MemoryInit expects the system memory to be declared with the
PCDs gArmTokenSpaceGuid.PcdSystemMemoryBase/Size.
These PCDs declare the largest continuous DRAM region. Additional regions can be
declared with the ArmPLatformLib function ArmPlatformGetAdditionalSystemMemory().

Now, it is the PEIM that partitions the system memory for every platform. It installs
a region of the size PcdSystemMemoryUefiRegionSize (default 128MB) for the PEI permanent
memory at the top of the DRAM region.
And a region of gArmPlatformTokenSpaceGuid.PcdSystemMemoryFixRegionSize (default 128MB)
is declared at the base of the system memory. This region is used for the allocation that
requires fixed address or have some constraints on their locations.

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

10 years agoArmPlatformPkg/ArmPlatformLib: Introduce the function ArmPlatformGetBootMode()
oliviermartin [Thu, 31 Mar 2011 12:18:28 +0000 (12:18 +0000)]
ArmPlatformPkg/ArmPlatformLib: Introduce the function ArmPlatformGetBootMode()

This function returns the current Boot Mode of the ARM Platform.

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

10 years agoArmPkg/BdsLib: Fix GetSystemMemoryResources()
oliviermartin [Thu, 31 Mar 2011 12:17:37 +0000 (12:17 +0000)]
ArmPkg/BdsLib: Fix GetSystemMemoryResources()

The function was not correctly merging the system memory chunks.

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

10 years agoArmPkg/BdsLib: Prevent application to hang the platform using watchdog
oliviermartin [Thu, 31 Mar 2011 12:16:28 +0000 (12:16 +0000)]
ArmPkg/BdsLib: Prevent application to hang the platform using watchdog

Before to start an image we start the watchdog. And it stops when the
application returns.

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

10 years agoEmbeddedPkg/Ebl: Add support for env variable deletion
oliviermartin [Thu, 31 Mar 2011 12:14:06 +0000 (12:14 +0000)]
EmbeddedPkg/Ebl: Add support for env variable deletion

Passing only the variable name should delete the environment
variable if it exists.

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

10 years agoArmPlatformPkg: Introduce ArmPlatformInitialize() function
oliviermartin [Thu, 31 Mar 2011 12:12:58 +0000 (12:12 +0000)]
ArmPlatformPkg: Introduce ArmPlatformInitialize() function

This function is responsible to handle all the specific platform code that must
be run in secure world to initialize some controllers.

ArmPlatformPkg/Sec: Move the L2x0 initialization to ArmPlatformLib

The L2x0 controller must be initialized in secure world. Move its initialization
into the ArmPlatformInitialize() of the Cortex A9x4 Core Tile PlatformLib.

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

10 years agoArmPlatformPkg: Rename gEmbeddedTokenSpaceGuid.PcdEmbeddedFd* into gArmTokenSpaceGuid...
oliviermartin [Thu, 31 Mar 2011 12:11:12 +0000 (12:11 +0000)]
ArmPlatformPkg: Rename gEmbeddedTokenSpaceGuid.PcdEmbeddedFd* into gArmTokenSpaceGuid.PcdNormalFd*

This renaming is for matching the namespace with the secure firmware
gArmTokenSpaceGuid.PcdSecureFdBaseAddress/Size.

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

10 years agoArmPlatformPkg: Use Serial print function to print out non debugging information
oliviermartin [Thu, 31 Mar 2011 12:09:31 +0000 (12:09 +0000)]
ArmPlatformPkg: Use Serial print function to print out non debugging information

Exception errors and early print statements must be also print out in Release builds.
Replace the DEBUG() macro by the SerialPortWrite() function.

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

10 years agoArmPlatformPkg/SP804Timer: Fix IRQ handler when the Timer IRQ is shared
oliviermartin [Thu, 31 Mar 2011 11:35:10 +0000 (11:35 +0000)]
ArmPlatformPkg/SP804Timer: Fix IRQ handler when the Timer IRQ is shared

The handler must check if the raised interrupt belongs to the SP804
Timer controller.

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

10 years agoArmPkg/ArmLib: Define the macro IS_ARM_MEMORY_REGION_ATTRIBUTES_SECURE()
oliviermartin [Thu, 31 Mar 2011 11:33:42 +0000 (11:33 +0000)]
ArmPkg/ArmLib: Define the macro IS_ARM_MEMORY_REGION_ATTRIBUTES_SECURE()

This macro returns TRUE is the ARM memory region is a Secure region.

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

10 years agoArmPlatformPkg/CTA9x4: Remove Variable Storage FD file from FDF
oliviermartin [Thu, 31 Mar 2011 11:32:25 +0000 (11:32 +0000)]
ArmPlatformPkg/CTA9x4: Remove Variable Storage FD file from FDF

The Variable Storage is now formated by the NOR Flsah driver.
Force the NOR Flash driver to be loaded before the Variable Service
DXE driver. And check if the Non Volatile Storage exists in NOR flash.
If not, the driver writes the correct header.

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

10 years agoArmPkg/ArmV7: Fix TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_MASK mask
oliviermartin [Thu, 31 Mar 2011 11:29:46 +0000 (11:29 +0000)]
ArmPkg/ArmV7: Fix TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_MASK mask

The value for this mask was not correct.

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

10 years agoArmPkg/PL390GixDxe: Return from the interrupt handler when it is a sporadic interrupt
oliviermartin [Thu, 31 Mar 2011 11:28:25 +0000 (11:28 +0000)]
ArmPkg/PL390GixDxe: Return from the interrupt handler when it is a sporadic interrupt

Sporadic interrupts must not be handled by any interrupt handlers.

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

10 years agoArmPkg/CpuDxe: Replace SIZE_4KB by TT_DESCRIPTOR_PAGE_SIZE
oliviermartin [Thu, 31 Mar 2011 11:26:00 +0000 (11:26 +0000)]
ArmPkg/CpuDxe: Replace SIZE_4KB by TT_DESCRIPTOR_PAGE_SIZE

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

10 years agoArmPkg/Mmu: Support page size granularity in the initial MMU setting
oliviermartin [Thu, 31 Mar 2011 11:23:55 +0000 (11:23 +0000)]
ArmPkg/Mmu: Support page size granularity in the initial MMU setting

Formerly, it was only possible to use section size granularity for the
translation table regions.
This change allows to define initial translation table regions with
4K-byte granularty (page size granularity).

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

10 years agoArmPkg/PL180MciDxe: Improve error handling
oliviermartin [Thu, 31 Mar 2011 11:20:15 +0000 (11:20 +0000)]
ArmPkg/PL180MciDxe: Improve error handling

Get more error handling using PL180 status registers.

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

10 years agoArmPkg/MmcDxe: Fix some returned conditions for MMC/SD commands
oliviermartin [Thu, 31 Mar 2011 11:16:02 +0000 (11:16 +0000)]
ArmPkg/MmcDxe: Fix some returned conditions for MMC/SD commands

Additional support for some states covered by the specifications.

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

10 years agoEmbeddedPkg/MmcDxe: Fix protocols uninstallation in Stop() function
oliviermartin [Thu, 31 Mar 2011 11:11:59 +0000 (11:11 +0000)]
EmbeddedPkg/MmcDxe: Fix protocols uninstallation in Stop() function

The EFI handle argument passed to disconnect the protocol was not correct.
A pointer to this handle was passed as argument instead to be only the
handle itself.

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

10 years ago1. solve build time issue that FV size is exceed due to more modules is included.
erictian [Thu, 31 Mar 2011 09:18:14 +0000 (09:18 +0000)]
1. solve build time issue that FV size is exceed due to more modules is included.
2. solve invalid instruction issue when running SecMain executive.

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

10 years agofix for the cp shell command - halt when an error was encountered and also fix the...
jcarsey [Wed, 30 Mar 2011 21:37:01 +0000 (21:37 +0000)]
fix for the cp shell command - halt when an error was encountered and also fix the error message displayed.

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

10 years agodidn't mean to remove this comment.
jcarsey [Wed, 30 Mar 2011 21:05:25 +0000 (21:05 +0000)]
didn't mean to remove this comment.

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

10 years agoremove redirection command line updating from the shell core code.
jcarsey [Wed, 30 Mar 2011 21:04:57 +0000 (21:04 +0000)]
remove redirection command line updating from the shell core code.
add redirection command line updating to the redirection support function (UpdateStdInStdOutStdErr).
add more user input verification to redirection.

reduce user input verification from inside quoted parameters.

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

10 years agopointer verification (not NULL) and buffer overrun fixes.
jcarsey [Wed, 30 Mar 2011 19:33:03 +0000 (19:33 +0000)]
pointer verification (not NULL) and buffer overrun fixes.

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

10 years agoadd more user input verification to connect and vol commands.
jcarsey [Wed, 30 Mar 2011 16:36:42 +0000 (16:36 +0000)]
add more user input verification to connect and vol commands.

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

10 years agoremove unused variable.
jcarsey [Wed, 30 Mar 2011 16:12:42 +0000 (16:12 +0000)]
remove unused variable.
add some parens.

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

10 years agoFix ICC compilation failure. No functionality impact.
niruiyu [Wed, 30 Mar 2011 04:37:59 +0000 (04:37 +0000)]
Fix ICC compilation failure. No functionality impact.

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

10 years agoUpdate inf file to follow spec.
ydong10 [Wed, 30 Mar 2011 03:41:33 +0000 (03:41 +0000)]
Update inf file to follow spec.

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

10 years agoUpdate inf file to follow spec.
ydong10 [Wed, 30 Mar 2011 03:40:42 +0000 (03:40 +0000)]
Update inf file to follow spec.

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

10 years agoUpdate inf file to follow spec.
ydong10 [Wed, 30 Mar 2011 03:38:50 +0000 (03:38 +0000)]
Update inf file to follow spec.

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

10 years agoUpdate inf file to follow spec.
ydong10 [Wed, 30 Mar 2011 03:37:47 +0000 (03:37 +0000)]
Update inf file to follow spec.

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

10 years agoUpdate inf file to follow spec.
ydong10 [Wed, 30 Mar 2011 03:36:54 +0000 (03:36 +0000)]
Update inf file to follow spec.

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

10 years agoclarify error message when listing files based on a metaname without a current workin...
jcarsey [Tue, 29 Mar 2011 20:19:51 +0000 (20:19 +0000)]
clarify error message when listing files based on a metaname without a current working directory.

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

10 years agofix changing time daylight settings without changing the time.
jcarsey [Tue, 29 Mar 2011 19:59:37 +0000 (19:59 +0000)]
fix changing time daylight settings without changing the time.
add extra output for daylight setting.

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

10 years agosmbiosview - add user input verification.
jcarsey [Tue, 29 Mar 2011 19:31:18 +0000 (19:31 +0000)]
smbiosview - add user input verification.

HexEdit/Edit
 - More user input verification for HexEdit.
 - updated title bar refreshment.

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

10 years agoinitialize variable before error returns.
jcarsey [Tue, 29 Mar 2011 19:28:20 +0000 (19:28 +0000)]
initialize variable before error returns.

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

10 years agoTypo for the old patch enhance code style.
ydong10 [Tue, 29 Mar 2011 08:57:21 +0000 (08:57 +0000)]
Typo for the old patch enhance code style.

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

10 years agoAdd DevicePathFromText support for ACPI _ADR node.
niruiyu [Tue, 29 Mar 2011 08:24:21 +0000 (08:24 +0000)]
Add DevicePathFromText support for ACPI _ADR node.

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

10 years agoprevents "" from being the result of trying to open the root of a drive.
jcarsey [Mon, 28 Mar 2011 21:49:17 +0000 (21:49 +0000)]
prevents "" from being the result of trying to open the root of a drive.
more input validation on vol command.

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