11 years agoEmbeddedPkg/PrePiHobListPointerLib: New interface to abstract the HobListPointer...
oliviermartin [Fri, 1 Jul 2011 10:59:06 +0000 (10:59 +0000)]
EmbeddedPkg/PrePiHobListPointerLib: New interface to abstract the HobListPointer storage

This interface allows to use different mechanism to store the HobList Pointer.

EmbeddedPkg/PrePiHobListPointerLib: Implementation of PrePiHobListPointerLib using PCD

This library uses a PCD to store the location of the HobList Pointer.

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

11 years agoEmbeddedPkg/PrePiLib: Remove the performance measurements from the library
oliviermartin [Fri, 1 Jul 2011 10:57:38 +0000 (10:57 +0000)]
EmbeddedPkg/PrePiLib: Remove the performance measurements from the library

The PrePiLib should really be used for the PEI phase (not the SEC phase).
It is the DXE core that take the tick for the end of the PEI phase.

The Platform PrePi module should be responsible to take the tick when it
starts for the PEI phase.

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

11 years agoEmbeddedPkg/PrePiHobLib: Move Hob functions from PrePiLib to PrePiHobLib
oliviermartin [Fri, 1 Jul 2011 10:56:24 +0000 (10:56 +0000)]
EmbeddedPkg/PrePiHobLib: Move Hob functions from PrePiLib to PrePiHobLib

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

11 years agoEmbeddedPkg: Introduce PrePiMemoryAllocationLib (2)
oliviermartin [Fri, 1 Jul 2011 10:53:51 +0000 (10:53 +0000)]
EmbeddedPkg: Introduce PrePiMemoryAllocationLib (2)

Forgot the new files ...

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

11 years agoEmbeddedPkg: Introduce PrePiMemoryAllocationLib
oliviermartin [Fri, 1 Jul 2011 10:50:48 +0000 (10:50 +0000)]
EmbeddedPkg: Introduce PrePiMemoryAllocationLib

This Memory Allocation Library for PrePi is based on the memory
functions of PrePiLib.

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

11 years agoFix ICC build error.
lzeng14 [Fri, 1 Jul 2011 04:59:47 +0000 (04:59 +0000)]
Fix ICC build error.

Signed-off-by: lzeng14
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11942 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix CreateBootDisk.bat not using config variables
niruiyu [Fri, 1 Jul 2011 04:48:45 +0000 (04:48 +0000)]
Fix CreateBootDisk.bat not using config variables

Signed-off-by: Pete Batard
Reviewed-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11941 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix ICC build error.
lzeng14 [Fri, 1 Jul 2011 03:56:19 +0000 (03:56 +0000)]
Fix ICC build error.

Signed-off-by: lzeng14
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11940 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix ICC build error.
lzeng14 [Fri, 1 Jul 2011 03:47:26 +0000 (03:47 +0000)]
Fix ICC build error.

Signed-off-by: lzeng14
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11939 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMdeModulePkg: Add ResetSystemRuntimeDxe driver
jljusten [Fri, 1 Jul 2011 00:40:46 +0000 (00:40 +0000)]
MdeModulePkg: Add ResetSystemRuntimeDxe driver

Signed-off-by: jljusten
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11938 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMdeModulePkg: Add GenericMemoryTestDxe driver
jljusten [Fri, 1 Jul 2011 00:40:26 +0000 (00:40 +0000)]
MdeModulePkg: Add GenericMemoryTestDxe driver

Signed-off-by: jljusten
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11937 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoThis refactors 3 functions out of ShellCommandLib and puts them into a new library...
jcarsey [Thu, 30 Jun 2011 22:58:53 +0000 (22:58 +0000)]
This refactors 3 functions out of ShellCommandLib and puts them into a new library (but as 2 functions instead of 3).  This allows for users outside of the shell itself to have access to these functions.

1) Remove the 3 functions out of the shell's internal library (ShellCommandLib)
2) Add a new library class (PathLib)
3) Add an instance of this class (BasePathLib)
4) Change all internal shell callers to use this new library class.

signed-off-by: jcarsey
reviewed-by: jljusten

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

11 years agoadd fixes for code verification happyness.
jcarsey [Thu, 30 Jun 2011 22:25:46 +0000 (22:25 +0000)]
add fixes for code verification happyness.

signed-off-by: jcarsey
reviewed-by: jljusten

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

11 years agoIntelFrameworkModulePkg: Add PalLib library class mapping
jljusten [Thu, 30 Jun 2011 20:19:03 +0000 (20:19 +0000)]
IntelFrameworkModulePkg: Add PalLib library class mapping

This is required for Csm/LegacyBiosDxe on IPF.

Signed-off-by: jljusten
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11934 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix the comments in the core interface to follow the UEFI Spec regarding how to check...
niruiyu [Thu, 30 Jun 2011 03:34:42 +0000 (03:34 +0000)]
Fix the comments in the core interface to follow the UEFI Spec regarding how to check an EFI_HANDLE is valid/invalid.

Signed-off-by: niruiyu
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11933 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix a potential memory free failure bug in AtaAtapiPassThru
erictian [Thu, 30 Jun 2011 03:32:00 +0000 (03:32 +0000)]
Fix a potential memory free failure bug in AtaAtapiPassThru

Signed-off-by: erictian
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11932 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix DevPathToTextIPv6(): no comma between protocol and type string.
niruiyu [Thu, 30 Jun 2011 02:20:07 +0000 (02:20 +0000)]
Fix DevPathToTextIPv6(): no comma between protocol and type string.

Signed-off-by: niruiyu
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11931 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoGive Python/PythonCore.inf its own GUID.
darylm503 [Wed, 29 Jun 2011 18:16:01 +0000 (18:16 +0000)]
Give Python/PythonCore.inf its own GUID.
Do not build Python by default since it requires manual preparation before it can be built.
Update ReadMe.pdf to include information on configuring and building Python.

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

11 years agoEmulatorPkg: Match paths/names for Xcode with new package naming scheme.
andrewfish [Wed, 29 Jun 2011 17:27:55 +0000 (17:27 +0000)]
EmulatorPkg: Match paths/names for Xcode with new package naming scheme.


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

11 years agoEmulatorPkg: Add README file
jljusten [Wed, 29 Jun 2011 16:30:51 +0000 (16:30 +0000)]
EmulatorPkg: Add README file

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11928 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoEmulatorPkg: Merge build*.sh into build.sh
jljusten [Wed, 29 Jun 2011 16:30:38 +0000 (16:30 +0000)]
EmulatorPkg: Merge build*.sh into build.sh

Merged OvmfPkg/build.sh changes to allow a single build script
for IA32 & X64 builds.

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11927 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoadd (UINT8 *) type cast to fix ICC build failure.
niruiyu [Wed, 29 Jun 2011 07:15:58 +0000 (07:15 +0000)]
add (UINT8 *) type cast to fix ICC build failure.

Signed-off-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11926 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoEmulatorPkg: Move Unix/UnixX64.* to EmulatorPkg.*
jljusten [Wed, 29 Jun 2011 05:13:54 +0000 (05:13 +0000)]
EmulatorPkg: Move Unix/UnixX64.* to EmulatorPkg.*

EmulatorPkg/Unix/UnixX64.dsc => EmulatorPkg/EmulatorPkg.dsc
EmulatorPkg/Unix/UnixX64.fdf => EmulatorPkg/EmulatorPkg.fdf

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11925 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoEmulatorPkg/Unix: Rename SecMain to Host
jljusten [Wed, 29 Jun 2011 05:13:33 +0000 (05:13 +0000)]
EmulatorPkg/Unix: Rename SecMain to Host

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11924 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoIntelFrameworkModulePkg: Fix clang compielr warning.
andrewfish [Tue, 28 Jun 2011 23:11:25 +0000 (23:11 +0000)]
IntelFrameworkModulePkg: Fix clang compielr warning.

Clang complains about if (()) constructs as it thinks you may be doing a compare and assign in the same if structure.

signed-off-by: vanjeff

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

11 years agoMissing from previous check-in.
darylm503 [Tue, 28 Jun 2011 19:44:23 +0000 (19:44 +0000)]
Missing from previous check-in.

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

11 years agoEmulatorPkg: Fix build break.
andrewfish [Tue, 28 Jun 2011 18:12:41 +0000 (18:12 +0000)]
EmulatorPkg: Fix build break.

signed-off-by: andrewfish

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

11 years agoEmulatorPkg: Fix issue with ReadKeyStroke returning EFI_SUCCESS when only a modifier...
andrewfish [Tue, 28 Jun 2011 18:11:34 +0000 (18:11 +0000)]
EmulatorPkg: Fix issue with ReadKeyStroke returning EFI_SUCCESS when only a modifier key is pressed.

This should only happen for ReadKeyStrokeEx.

signed-off-by: andrewfish

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

11 years agoEmulatorPkg: Remove all trailing whitespace
jljusten [Tue, 28 Jun 2011 16:50:26 +0000 (16:50 +0000)]
EmulatorPkg: Remove all trailing whitespace

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11919 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Rename package to EmulatorPkg & Sec to Host
jljusten [Tue, 28 Jun 2011 16:47:23 +0000 (16:47 +0000)]
InOsEmuPkg: Rename package to EmulatorPkg & Sec to Host

* Rename InOsEmuPkg to EmulatorPkg
* Rename Unix/Sec to Unix/Host

Signed-off-by: jljusten
Reviewed-by: andrewfish
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11918 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoClarify the requirements for the Destination parameter of UnicodeStrToAsciiStr.
jcarsey [Tue, 28 Jun 2011 15:01:53 +0000 (15:01 +0000)]
Clarify the requirements for the Destination parameter of UnicodeStrToAsciiStr.


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

11 years agoArmPlatformPkg/Bds: Use unaligned read to access OptionalData in EFI_LOAD_OPTION
oliviermartin [Tue, 28 Jun 2011 11:55:11 +0000 (11:55 +0000)]
ArmPlatformPkg/Bds: Use unaligned read to access OptionalData in EFI_LOAD_OPTION

EFI_LOAD_OPTION is a packed structure. Accessing to the non aligned double word
requires to use ReadUnaligned32() function.

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

11 years agoArmPlatformPkg/Bds: Check if the assumed requirements are set before to use it
oliviermartin [Tue, 28 Jun 2011 11:50:32 +0000 (11:50 +0000)]
ArmPlatformPkg/Bds: Check if the assumed requirements are set before to use it

There were some assumptions that some PCDs and protocols were defined.
Check if these requirements are defined; either print a debug message
to inform the user or skip the statements that require these PCDs or protocol.

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

11 years agoArmPkg/BdsLib: Check if the performance timer is counting down or up in PrintPerforma...
oliviermartin [Tue, 28 Jun 2011 11:41:34 +0000 (11:41 +0000)]
ArmPkg/BdsLib: Check if the performance timer is counting down or up in PrintPerformance()

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

11 years agoEnable new "ref5" opcode in browser.
ydong10 [Tue, 28 Jun 2011 06:41:28 +0000 (06:41 +0000)]
Enable new "ref5" opcode in browser.


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

11 years agoAdd new "ref5" opcode data structure and ref data type structure.
ydong10 [Tue, 28 Jun 2011 06:39:26 +0000 (06:39 +0000)]
Add new "ref5" opcode data structure and ref data type structure.


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

11 years agoRestore the whole form set to default value when user enter F9, old logical only...
ydong10 [Tue, 28 Jun 2011 05:01:49 +0000 (05:01 +0000)]
Restore the whole form set to default value when user enter F9, old logical only for form level.


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

11 years agoBasic Core Python interpreter.
darylm503 [Tue, 28 Jun 2011 03:28:27 +0000 (03:28 +0000)]
Basic Core Python interpreter.
This allows the Python 2.7.1 distribution to be extracted into the AppPkg/Applications/Python directory - producing the AppPkg/Applications/Python/Python-2.7.1 directory - then built for EDK II using the Standard C Libraries provided by the StdLib package.

Only rudimentary functionality has been tested.
Only compilation with Microsoft Visual Studio 2005 has been tested for Ia32 and X64 architectures.
The X64/pyconfig.h file should probably be updated to match the values in Ia32/pyconfig.h.

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

11 years agoChanges required to build using the new device abstraction capability of StdLib.
darylm503 [Tue, 28 Jun 2011 02:38:33 +0000 (02:38 +0000)]
Changes required to build using the new device abstraction capability of StdLib.
Applications which require file-system functionality must have DevShell listed in the [LibraryClasses] section of the application's INF file.
Entries for the device abstraction Library Classes must be added to the application's package's DSC file.

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

11 years agoAdd device abstraction code for the UEFI Console and UEFI Shell-based file systems.
darylm503 [Tue, 28 Jun 2011 02:34:10 +0000 (02:34 +0000)]
Add device abstraction code for the UEFI Console and UEFI Shell-based file systems.
Make argv use narrow characters instead of wide characters.
Add setenv functionality.
Add poll() system call.
Change signal names into macros – required for standards compliance.  The enums were renamed and moved to sys/signal.h and the new macros reference the enums.
Added SIGBREAK, which is required for Python.
Modify stdio functions to fail cleanly when called with a NULL File Pointer argument.
Added <sys/cdefs.h> that just includes <sys/EfiCdefs.h>.  By adding this wrapper, we improve compatibility with *nix files which assume <sys/cdefs> exists.
Add <netdb.h>
Added macros for bcopy(), bcmp() and strsep().
Modify the clock() function so that it does not hang when running under an emulation environment such as NT32.
Move TM structure specific macros from the private tzfile.h into <time.h>
Add strncasecmp function.
Add strptime function.
Add gettimeofday function.
Add getcwd function.

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

11 years agoAdd device abstraction code for the UEFI Console and UEFI Shell-based file systems.
darylm503 [Tue, 28 Jun 2011 02:27:55 +0000 (02:27 +0000)]
Add device abstraction code for the UEFI Console and UEFI Shell-based file systems.
Make argv use narrow characters instead of wide characters.
Add setenv functionality.

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

11 years agoClean up invalid keywords and missing keywords in [Define] section of INF/DEC files.
lzeng14 [Tue, 28 Jun 2011 02:24:46 +0000 (02:24 +0000)]
Clean up invalid keywords and missing keywords in [Define] section of INF/DEC files.

Signed-off-by: lzeng14
Reviewed-by: lhauch
Reviewed-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11906 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoIntelFrameworkModulePkg: Add Compatibility Support Module (CSM) drivers
jljusten [Mon, 27 Jun 2011 23:32:56 +0000 (23:32 +0000)]
IntelFrameworkModulePkg: Add Compatibility Support Module (CSM) drivers

Added these drivers:
* LegacyBiosDxe
* BlockIoDxe
* KeyboardDxe
* Snp16Dxe
* VideoDxe

Signed-off-by: jljusten
Reviewed-by: mdkinney
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11905 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoEdkCompatibilityPkg: Add AcpiVariableHobOnSmramReserveHobThunk
jljusten [Mon, 27 Jun 2011 23:32:02 +0000 (23:32 +0000)]
EdkCompatibilityPkg: Add AcpiVariableHobOnSmramReserveHobThunk

Signed-off-by: jljusten
Reviewed-by: mdkinney
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11904 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoIntelFrameworkModulePkg: Add Guid/AcpiVariable.h
jljusten [Mon, 27 Jun 2011 23:31:40 +0000 (23:31 +0000)]
IntelFrameworkModulePkg: Add Guid/AcpiVariable.h

Signed-off-by: jljusten
Reviewed-by: mdkinney
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11903 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMdeModulePkg: Add IdeBusPei driver
jljusten [Mon, 27 Jun 2011 23:31:21 +0000 (23:31 +0000)]
MdeModulePkg: Add IdeBusPei driver

Signed-off-by: jljusten
Reviewed-by: mdkinney
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11902 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMdeModulePkg: Add PEI USB drivers and related PPIs
jljusten [Mon, 27 Jun 2011 23:30:55 +0000 (23:30 +0000)]
MdeModulePkg: Add PEI USB drivers and related PPIs

Signed-off-by: jljusten
Reviewed-by: mdkinney
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11901 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoClarify that the shared variables of the shell protocols are properly named.
jcarsey [Mon, 27 Jun 2011 21:04:22 +0000 (21:04 +0000)]
Clarify that the shared variables of the shell protocols are properly named.

This removes the non-shared gEfiShellProtocol and gEfiShellParametersProtocol and renames the shared version to those names.

This removes the m-versions of those protocol pointers.

signed-off-by: jcarsey
reviewed-by: darylm503

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

11 years agoreplace protocol presence ASSERTs with error returns.
jcarsey [Mon, 27 Jun 2011 20:33:13 +0000 (20:33 +0000)]
replace protocol presence ASSERTs with error returns.

signed-off-by: jcarsey
reviewed-by: lgrosenb

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

11 years agomaintain output attributes.
jcarsey [Mon, 27 Jun 2011 20:29:23 +0000 (20:29 +0000)]
maintain output attributes.

signed-off-by: jcarsey
reviewed-by: lgrosenb

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

11 years agoreplace assert with error.
jcarsey [Mon, 27 Jun 2011 20:28:23 +0000 (20:28 +0000)]
replace assert with error.

signed-off-by: jcarsey
reviewed-by: lgrosenb

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

11 years agoMake sure size is correct.
jcarsey [Mon, 27 Jun 2011 20:27:29 +0000 (20:27 +0000)]
Make sure size is correct.

signed-off-by: jcarsey
reviewed-by: lgrosenb

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

11 years agoInOsEmuPkg: Fix Xcode symbol loading with new scheme. Fix bug in dlcose. Move some...
andrewfish [Mon, 27 Jun 2011 19:56:15 +0000 (19:56 +0000)]
InOsEmuPkg: Fix Xcode symbol loading with new scheme. Fix bug in dlcose. Move some of the gdb infrastrucuture to the start of main().

signed-off-by: andrewfish

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

11 years agoallow for failure return when called without a shell present.
jcarsey [Mon, 27 Jun 2011 16:45:41 +0000 (16:45 +0000)]
allow for failure return when called without a shell present.

signed-off-by: jcarsey
reviewed-by: lgrosenb

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

11 years agoInOsEmuPkg: Fix minor typo and Xcode build breaks. Seems Xcode is more picky about...
andrewfish [Mon, 27 Jun 2011 15:42:03 +0000 (15:42 +0000)]
InOsEmuPkg: Fix minor typo and Xcode build breaks. Seems Xcode is more picky about the types you pass into %x.

signed-off-by: andrewfish

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

11 years agoAdjust the start position of the opcode string before saving it to avoid show menu...
ydong10 [Mon, 27 Jun 2011 09:07:23 +0000 (09:07 +0000)]
Adjust the start position of the opcode string before saving it to avoid show menu info error.

Signed-off-by: ydong10
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11892 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix UnixGcc build failures.
niruiyu [Mon, 27 Jun 2011 06:03:06 +0000 (06:03 +0000)]
Fix UnixGcc build failures.

Signed-off-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11891 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoOvmfPkg: Add support for UEFI shell
jljusten [Sun, 26 Jun 2011 18:58:41 +0000 (18:58 +0000)]
OvmfPkg: Add support for UEFI shell

When building:
-D BUILD_NEW_SHELL - Build and include UEFI shell in firmware
-D USE_NEW_SHELL - Include UEFI shell binary build in firmware

The default is to use the older EFI shell.

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11890 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg/Unix: Allow binary UEFI shell to be used
jljusten [Sun, 26 Jun 2011 18:58:23 +0000 (18:58 +0000)]
InOsEmuPkg/Unix: Allow binary UEFI shell to be used

When using InOsEmuPkg/Unix/build64.sh -D USE_NEW_SHELL,
the UEFI shell binary will now be included in the firmware

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11889 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg/Unix: Auto-load symbols files in gdb
jljusten [Sun, 26 Jun 2011 18:58:10 +0000 (18:58 +0000)]
InOsEmuPkg/Unix: Auto-load symbols files in gdb

Images that can't be loaded with dlopen are
added to SecMain.gdb.

Whenever gdb stops, the hook-stop macro will automatically
load the symbol files.

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11888 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Make the Guard MemoryAllocationLib handle EFI allocated pages correctly.
andrewfish [Sat, 25 Jun 2011 01:39:09 +0000 (01:39 +0000)]
InOsEmuPkg: Make the Guard MemoryAllocationLib handle EFI allocated pages correctly.

signed-off-by: andrewfish

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

11 years agoInOsEmuPkg: Add an OS malloc/valloc/free based implementation of the MemoryAllocation...
andrewfish [Fri, 24 Jun 2011 23:59:51 +0000 (23:59 +0000)]
InOsEmuPkg: Add an OS malloc/valloc/free based implementation of the MemoryAllocationLib. Requires extra Thunk APIs.

I've got this working. The tricky part was a driver/application can mix malloc forms. If the driver links against this library all the allocations come from the OS service, but if a protocol or EFI boot service return an allocated buffer it will still use the EFI allocation. The gasket code can detect this and do the right thing, as the emulator is passing up the memory map to EFI.

You can now use the OS based malloc debugging tools in an EFI driver or appliaction. On OS X this is libgmalloc, also called guard malloc.

Signed-off-by: andrewfish.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11886 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Fix issue with struct stat not having the right size. EFI compiler args...
andrewfish [Fri, 24 Jun 2011 22:48:34 +0000 (22:48 +0000)]
InOsEmuPkg: Fix issue with struct stat not having the right size. EFI compiler args are not compatible with system include headers for IA32.

This is a fix for XCODE/XCLANG. I'm still seeing an issue, but the stat info for the filesystem is now correct.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11885 6f19259b-4bc3-4df7-8a09-765794883524

11 years ago[InOsEmuPkg] Fix minor coding style bug.
andrewfish [Fri, 24 Jun 2011 14:50:06 +0000 (14:50 +0000)]
[InOsEmuPkg] Fix minor coding style bug.

signed-off-by: andrewfish

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

11 years ago[InOSEmPkg] Add OS malloc and free to the Thunk.
andrewfish [Fri, 24 Jun 2011 14:48:38 +0000 (14:48 +0000)]
[InOSEmPkg] Add OS malloc and free to the Thunk.

Added OS malloc and free so we can make MemoryAllocationLib instance that uses OS guard malloc. This will allow all the debug support built into the OS for finding malloc bugs to be used with a driver in the emulator.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11883 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg/Unix: Fix build issues for GCC44 IA32
jljusten [Thu, 23 Jun 2011 15:23:39 +0000 (15:23 +0000)]
InOsEmuPkg/Unix: Fix build issues for GCC44 IA32

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11880 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg/Unix: Detect lib directory suffix on Linux
jljusten [Thu, 23 Jun 2011 15:23:20 +0000 (15:23 +0000)]
InOsEmuPkg/Unix: Detect lib directory suffix on Linux

For IA32 builds, if /lib32 and /usr/lib32 exist,
they will be used instead of /lib and /usr/lib.

For X64 builds, if /lib64 and /usr/lib64 exist,
they will be used instead of /lib and /usr/lib.

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11879 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg/Unix/build.sh: Merge changes from build64.sh r11867
jljusten [Thu, 23 Jun 2011 15:23:02 +0000 (15:23 +0000)]
InOsEmuPkg/Unix/build.sh: Merge changes from build64.sh r11867

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11878 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg/Unix: Auto-run emulator in gdb
jljusten [Thu, 23 Jun 2011 15:22:49 +0000 (15:22 +0000)]
InOsEmuPkg/Unix: Auto-run emulator in gdb

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11877 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoChange DUET DxeIpl to use SerialPort instead of manipulating serial port directly.
niruiyu [Thu, 23 Jun 2011 08:31:18 +0000 (08:31 +0000)]
Change DUET DxeIpl to use SerialPort instead of manipulating serial port directly.

Signed-off-by: niruiyu
Reviewed-by: jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11876 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRefine code to follow coding style.
ydong10 [Thu, 23 Jun 2011 01:33:03 +0000 (01:33 +0000)]
Refine code to follow coding style.

Signed-off-by: ydong10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11875 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoRemove non-ASCII characters.
niruiyu [Thu, 23 Jun 2011 01:30:52 +0000 (01:30 +0000)]
Remove non-ASCII characters.

Signed-off-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11874 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd check code to avoid access violation.
ydong10 [Thu, 23 Jun 2011 01:26:06 +0000 (01:26 +0000)]
Add check code to avoid access violation.

Signed-off-by: ydong10
Reviewed-by: jcarsey
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11873 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Add TimerLib for PEI, DXE_CORE, and DXE/EFI drivers/applications.
andrewfish [Tue, 21 Jun 2011 23:41:31 +0000 (23:41 +0000)]
InOsEmuPkg: Add TimerLib for PEI, DXE_CORE, and DXE/EFI drivers/applications.

Start using MdeModulePkg MetronomeDxe driver. Add PEI and DXE_CORE TimerLibs that just call back to the emulator. Add a DXE/UEFI TimerLib that also does a gBS->WaitForEvent() if the stall is for a long period of time. Change the Thunk API for Sleep to nanoseconds.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11872 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoMove the check refresh attribute logical out of the option string check logical.
ydong10 [Tue, 21 Jun 2011 02:58:45 +0000 (02:58 +0000)]
Move the check refresh attribute logical out of the option string check logical.

Signed-off-by: ydong10
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11871 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoAdd sample code for vfr opcode "guidop"
ydong10 [Tue, 21 Jun 2011 02:43:14 +0000 (02:43 +0000)]
Add sample code for vfr opcode "guidop"

Signed-off-by: ydong10
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11870 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInitialize data before using it
ydong10 [Tue, 21 Jun 2011 02:24:46 +0000 (02:24 +0000)]
Initialize data before using it

Signed-off-by: ydong10
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11869 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Make sure to skip DXE IPL on emulator build, and don't double build every...
andrewfish [Mon, 20 Jun 2011 23:05:43 +0000 (23:05 +0000)]
InOsEmuPkg: Make sure to skip DXE IPL on emulator build, and don't double build every thing IA-32 Xcode.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11868 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg/Unix: Enable single-pass build with Linux
jljusten [Mon, 20 Jun 2011 21:58:22 +0000 (21:58 +0000)]
InOsEmuPkg/Unix: Enable single-pass build with Linux

For Linux builds the thunk layer ('SEC') and main platform
firmware image will be built in a single build pass.

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11867 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg/Unix/Sec: Add BaseMemoryLib implementation to thunk layer
jljusten [Mon, 20 Jun 2011 21:58:05 +0000 (21:58 +0000)]
InOsEmuPkg/Unix/Sec: Add BaseMemoryLib implementation to thunk layer

This implementation only covers a few BaseMemoryLib functions.
The implementation leverates malloc/free in stdlib.

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11866 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg/Unix/Sec: Fix EFIAPI usage inconsistencies
jljusten [Mon, 20 Jun 2011 21:57:43 +0000 (21:57 +0000)]
InOsEmuPkg/Unix/Sec: Fix EFIAPI usage inconsistencies

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11865 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Remove unreference local variables
jljusten [Mon, 20 Jun 2011 21:57:27 +0000 (21:57 +0000)]
InOsEmuPkg: Remove unreference local variables

GCC44 will flag a warning for these unused variables.

Signed-off-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11864 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoArmPkg/CpuDxe: Register a callback for the gIdleLoopEventGuid event
oliviermartin [Mon, 20 Jun 2011 21:35:50 +0000 (21:35 +0000)]
ArmPkg/CpuDxe: Register a callback for the gIdleLoopEventGuid event

This gIdleLoopEventGuid event signals the Cpu that it should go into
the idle state waiting for any events.
CpuSleep() is used in this implementation to make the Cpu wait for
the next interrupt (WFI instruction).

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

11 years agoArmPkg/CpuPei: Declare the CPU HOB
oliviermartin [Mon, 20 Jun 2011 21:33:56 +0000 (21:33 +0000)]
ArmPkg/CpuPei: Declare the CPU HOB

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

11 years agoArmPkg/CpuPei: Get the System Memory from the Resource Memory HOB
oliviermartin [Mon, 20 Jun 2011 21:32:46 +0000 (21:32 +0000)]
ArmPkg/CpuPei: Get the System Memory from the Resource Memory HOB

Declare the system memory provided by the first Resource Memory HOB
as cached memory to the MMU.
All the remaining memory space is declared as Device Memory.

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

11 years agoArmPkg/CpuDxe: Change chain of dependency for CpuDxe and PL390Gic
oliviermartin [Mon, 20 Jun 2011 21:30:51 +0000 (21:30 +0000)]
ArmPkg/CpuDxe: Change chain of dependency for CpuDxe and PL390Gic

Previously the CPU driver had a dependency on the GIC driver.
But by design is should be the opposite. The CPU driver installs the
CPU protocol that exposes the exception registration function.
And then, the interrupt controller registers its IRQ handler through
this interface.

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

11 years agoFix potential null pointer dereference
erictian [Mon, 20 Jun 2011 09:35:53 +0000 (09:35 +0000)]
Fix potential null pointer dereference

Signed-off-by: erictian
Reviewed-by: ydong10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11859 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoFix EFI Option ROM being loaded twice unconditionally.
niruiyu [Mon, 20 Jun 2011 05:09:40 +0000 (05:09 +0000)]
Fix EFI Option ROM being loaded twice unconditionally.

Signed-off-by: niruiyu
Reviewed-by: rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11858 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Fix debug prints from DXE/UEFI drivers.
andrewfish [Sun, 19 Jun 2011 18:59:00 +0000 (18:59 +0000)]
InOsEmuPkg: Fix debug prints from DXE/UEFI drivers.

Turning on serial prints for early drivers, turned off debug prints for DXE/UEFI drivers. Add them back in via report status code.

signed-off-by: andrewfish

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

11 years agoInOsEmuPkg: Remove unneeded Framework for XCODE linker flag overrides.
andrewfish [Sun, 19 Jun 2011 18:57:56 +0000 (18:57 +0000)]
InOsEmuPkg: Remove unneeded Framework for XCODE linker flag overrides.

signed-off-by: andrewfish

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

11 years agoInOsEmuPkg: Fix issue with EFI_LBA not being implemented as a UINT64 in the IA-32...
andrewfish [Sun, 19 Jun 2011 18:56:13 +0000 (18:56 +0000)]
InOsEmuPkg: Fix issue with EFI_LBA not being implemented as a UINT64 in the IA-32 Gasket.

Also clean up some missing EFIAPI.

signed-off-by: andrewfish

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

11 years agoInOsEmuPkg: Fix UINT64 bugs in IA-32 gasket.
andrewfish [Sun, 19 Jun 2011 02:58:32 +0000 (02:58 +0000)]
InOsEmuPkg: Fix UINT64 bugs in IA-32 gasket.

At this point IA-32 emulator boots the shell with an X11 GOP window. Block IO seems to have an issue that needs to be debugged.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11854 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Fix issues with stack alignment in the gasket.
andrewfish [Sun, 19 Jun 2011 02:25:37 +0000 (02:25 +0000)]
InOsEmuPkg: Fix issues with stack alignment in the gasket.

There are still issues with the IA-32 gasket code. Mostly having to do with yank put bugs not accounting for UINT64 returns and arguments. Currently the IA-32 build crashes in the timer callback since it is UINT64, function ptr but the gasket is UINTN UINTN.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11853 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Fix IA-32 SEC temp ram code.
andrewfish [Sat, 18 Jun 2011 23:36:36 +0000 (23:36 +0000)]
InOsEmuPkg: Fix IA-32 SEC temp ram code.

Now we crash early in DXE Core.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11852 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Make build dir different for IA-32. Fix PCD XIP issues.
andrewfish [Sat, 18 Jun 2011 22:23:46 +0000 (22:23 +0000)]
InOsEmuPkg: Make build dir different for IA-32. Fix PCD XIP issues.

Signed-off-by andrewfish

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

11 years agoInOsEmuPkg: Add an Xcode project file for building and debugging IA-32 Unix emulator.
andrewfish [Sat, 18 Jun 2011 18:40:45 +0000 (18:40 +0000)]
InOsEmuPkg: Add an Xcode project file for building and debugging IA-32 Unix emulator.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11850 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Unix emulator now compiles for IA-32.
andrewfish [Sat, 18 Jun 2011 17:53:31 +0000 (17:53 +0000)]
InOsEmuPkg: Unix emulator now compiles for IA-32.

Wrote IA-32 (align stack to 16-bytes) gaskets for emulator and got it to compile for IA-32. TempRam switch code is not ported to IA-32 in Sec. Code crashes in Sec.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11849 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoUpdate the EFI_PCI_ADDRESS macro in PciRootBridgeIo.h to support PCI Express extended...
rsun3 [Sat, 18 Jun 2011 04:52:20 +0000 (04:52 +0000)]
Update the EFI_PCI_ADDRESS macro in PciRootBridgeIo.h to support PCI Express extended registers.

Signed-off-by: rsun3
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11848 6f19259b-4bc3-4df7-8a09-765794883524

11 years agoInOsEmuPkg: Fix Linux compile issues in BlockIo code.
andrewfish [Fri, 17 Jun 2011 21:43:45 +0000 (21:43 +0000)]
InOsEmuPkg: Fix Linux compile issues in BlockIo code.

singed-off-by: andrewfish

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

11 years agoInOsEmuPkg: Implement gIdleLoopEventGuid.
andrewfish [Fri, 17 Jun 2011 18:21:16 +0000 (18:21 +0000)]
InOsEmuPkg: Implement gIdleLoopEventGuid.

Added a CpuSleep () API to the Emulator Thunk. We needed to do this as the Stall() works hard to not get broken by the timer tic (POSIX signal). nanosleep() gets interrupted by the timer signal so it is a good emulator of a CpuSleep(); I was also able to remove some stalls in the X11 keyboard and mouse checking events, now that the gIdleLoopEventGuid was added.

Signed-off-by: andrewfish
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11846 6f19259b-4bc3-4df7-8a09-765794883524