Commit Graph

197 Commits

Author SHA1 Message Date
lgao4 9c24540944 Correct CpuPause.s to ICC11.
Signed-off-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12565 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-25 08:19:59 +00:00
niruiyu 8598a1ed33 Avoid using code name in comments.
Signed-off-by: niruiyu
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12552 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-19 05:44:28 +00:00
li-elvin 515327a3e3 Use a local variable and assign 0 to it, then use it as legacy interrupt table base address.
Signed-off-by: li-elvin
Reviewed-by: mdkinney, ydong10

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12544 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-18 02:42:34 +00:00
ydong10 57ad9d43b1 Add more check to avoid access violation.
Signed-off-by: ydong10
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12470 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-29 01:10:20 +00:00
hhtian afc5448e18 Rename SMM_CPU_IO_Protocol to SMM_CPU_IO2_PROTOCOL in PiSmmDefintions.h of SmmScriptLib to keep consistent with SMM_CPU_IO2_PROTOCOL defined in MdePkg.
Signed-off-by: hhtian
Reviewed-by:  rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12307 6f19259b-4bc3-4df7-8a09-765794883524
2011-09-09 06:01:22 +00:00
lgao4 6c7274a01e Fixed the issue in RuntimeStatusCode library that may not work on the early dispatched Runtime driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12074 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-02 06:26:07 +00:00
jljusten 4851f24430 EdkCompatibilityPkg: Add SmmScriptLib
Signed-off-by: jljusten
Reviewed-by: mdkinney
Reviewed-by: geekboy15a
Reviewed-by: jyao1
Reviewed-by: lgao4

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12032 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-19 20:48:30 +00:00
andrewfish 271d2c7f99 EdkCompatabilityPkg: Fix build issues with X64 clang
Removed passing VA_LIST and some assembly language compatability issues. Did not fix ReportStatusCode passing VA_LIST (non-ANSI C Code), and some of the assembler was not not ported and int 3 was inserted, as it likely is not needed.

signed-off-by: andrewfish
reviewed-by: lgao4


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12006 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-12 02:57:30 +00:00
niruiyu f99d3d23cb Change BuildGuidHob and BuildGuidDataHob to return NULL upon failure.
Guarantee no memory corruption in an out of memory condition even in production builds.

Signed-off-by: niruiyu
Reviewed-by: mdkinney

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11778 6f19259b-4bc3-4df7-8a09-765794883524
2011-06-09 02:55:17 +00:00
lgao4 c10dc4c120 Export EDKII_GLUE_DebugPrintErrorLevel and EDKII_GLUE_DebugPropertyMask macro
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11256 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-18 02:12:32 +00:00
jljusten 58b9f0f0ee EdkCompatibilityPkg RuntimeDxe Lib: Fix GCC warning
Fix warning seen with GCC 4.4.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11222 6f19259b-4bc3-4df7-8a09-765794883524
2011-01-03 18:53:51 +00:00
lgao4 2a6433fef2 Use SmmStatusCode protocol in EfiInitializeSmmDriverLib() funciton.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11213 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-31 04:36:50 +00:00
ydong10 2349cf6f63 Refine code to make code run more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11143 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-09 08:25:59 +00:00
ydong10 54790583c0 Refine code to make code more safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11123 6f19259b-4bc3-4df7-8a09-765794883524
2010-12-06 09:14:47 +00:00
lgao4 3e99020dbf Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11094 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-26 01:54:49 +00:00
li-elvin be3b67bca5 Fix the issue that the high 16-bit of EAX may contain invalid data, which cause bad stack pointer, the change will ensure the high 16-bit of EAX is cleared.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11046 6f19259b-4bc3-4df7-8a09-765794883524
2010-11-12 07:45:08 +00:00
ydong10 52fb4d3d13 Refine some code to make code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10873 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-13 10:46:02 +00:00
ydong10 e009609938 Refine some code to make the code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10863 6f19259b-4bc3-4df7-8a09-765794883524
2010-09-10 01:04:00 +00:00
lgao4 6401e5ff13 Correct the check for macro definition __EDKII_GLUE_PEI_HOB_LIB__.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10719 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-30 07:46:38 +00:00
lgao4 2a0879aa03 Use local version EfiScriptLibAsciiStrLen() and EfiScriptLibStrLen() function to get string length so that this library doesn't depend on other EDK libraries and it can be linked together with EdkIIGlueLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10711 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-29 05:38:39 +00:00
lgao4 712a5698a6 Sync fix on MdePkg r9982.
Do not set gBS to NULL when the ExitBootServices event notification for the UEFI Runtime Lib is executed.

There is no guarantee that the ExitBootServices notification function from this lib will be the last ExitBootServices notification function registered by a module that uses the UEFI Runtime lib.  If additional ExitBootServices notification functions require the use of gBS, then setting to NULL will break those additional ExitBootServices notification functions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10709 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-29 02:39:37 +00:00
lgao4 2496b46512 1. Update FFS_FIXED_CHECKSUM to 0xAA to match PI FV image generated by EDKII build tool.
2.  Clean up EfiScriptLib by removing unused EfiDriverLib from its INF file.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10662 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-19 05:33:56 +00:00
andrewfish 1beb1af938 Fixes for the ARM port of SCTs
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10656 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-16 15:53:39 +00:00
andrewfish c14164f4f3 Ported more of EdkCompatabilityPkg to ARM to support SCT port.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10641 6f19259b-4bc3-4df7-8a09-765794883524
2010-07-09 00:07:30 +00:00
lgao4 97c0d02fd6 Remove unnecessary volatile for local Index variable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10608 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-28 10:26:41 +00:00
jljusten 124969632b EdkCompatibilityPkg: Fix EFIAPI usage inconsistencies
These inconsistencies cause a build error for GCC 4.4 X64.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10587 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-15 02:46:49 +00:00
lgao4 0ccabf7bab Initialize the local variable before refer to them.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10577 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-12 03:14:26 +00:00
lgao4 4ac4deb706 Add more check to make sure code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10574 6f19259b-4bc3-4df7-8a09-765794883524
2010-06-11 07:47:06 +00:00
xdu2 30c636a3f2 Fix bug in AsmCpuVirtual() to return 1 instead of 0 when CPU is in virtual mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10476 6f19259b-4bc3-4df7-8a09-765794883524
2010-05-10 02:49:26 +00:00
hhtian 4ea9375a2d Update the copyright notice format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10434 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-28 11:56:24 +00:00
hhtian 2c7e5c2feb Update the copyright notice format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10433 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-28 11:42:36 +00:00
lgao4 cddf6c5511 Correct file path separator to be consistent.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10293 6f19259b-4bc3-4df7-8a09-765794883524
2010-03-20 06:58:55 +00:00
lgao4 9e18c9b3b9 Add GlueLib SmmRuntimeDxeReportStatusCodeLib into EdkCompatibilityPkg , which provides the security status code library for EDK runtime and smm driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10246 6f19259b-4bc3-4df7-8a09-765794883524
2010-03-15 09:25:21 +00:00
lgao4 b56111f480 Add GlueLib SmmRuntimeDxeReportStatusCodeLib into EdkCompatibilityPkg , which provides the security status code library for EDK runtime and smm driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10245 6f19259b-4bc3-4df7-8a09-765794883524
2010-03-15 09:24:26 +00:00
rsun3 9e62071910 Add 4 Framework/PI SMM thunk drivers. Combined use of these drivers can support usage model of PI SMM infrastructure + Framework Chipset SMM code + Framework platform SMM code in ECP platforms.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9657 6f19259b-4bc3-4df7-8a09-765794883524
2009-12-31 08:42:28 +00:00
rsun3 5d36285da8 Fix a PeiServices pointer checking error bug in EfiCommonLib in ECP.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9564 6f19259b-4bc3-4df7-8a09-765794883524
2009-12-15 08:50:58 +00:00
AJFISH 1afe0401f4 Fixes for ARM build in the EdkCompatibilityPkg and a couple of Xcode fixes for MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9520 6f19259b-4bc3-4df7-8a09-765794883524
2009-12-06 02:01:54 +00:00
xdu2 df8d0595dc Update function description to be consistent with code definition: HEX_RADIX => RADIX_HEX.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9434 6f19259b-4bc3-4df7-8a09-765794883524
2009-11-17 01:46:51 +00:00
AJFISH e8de46808a Fixed issues compiling for Apple gcc on IA-32
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9310 6f19259b-4bc3-4df7-8a09-765794883524
2009-09-24 21:48:45 +00:00
rsun3 82dae5efb3 Fix bug that home addresses for register parameters must be allocated for calling C function from X64 assembly code to follow x64 calling convention.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9303 6f19259b-4bc3-4df7-8a09-765794883524
2009-09-22 09:19:59 +00:00
qhuang8 86345de537 Update to remove .intel_syntax directives to improve portability since it is not supported by all GCC assembliers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9165 6f19259b-4bc3-4df7-8a09-765794883524
2009-08-20 09:38:23 +00:00
qhuang8 f315cfa5b7 Remove unnecessary .align directory and change .align directory to .p2align to avoid ambiguous.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9163 6f19259b-4bc3-4df7-8a09-765794883524
2009-08-20 09:00:33 +00:00
qhuang8 d82018184e Remove unnecessary .align directives.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9161 6f19259b-4bc3-4df7-8a09-765794883524
2009-08-20 08:39:01 +00:00
qhuang8 b341712e31 Update to make end-of-line consistent for all source files in MdePkg. There are no other updates besides that change.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9160 6f19259b-4bc3-4df7-8a09-765794883524
2009-08-20 08:19:39 +00:00
vanjeff 99f6759411 Enhanced BMP file security check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9010 6f19259b-4bc3-4df7-8a09-765794883524
2009-07-27 02:23:19 +00:00
rsun3 ada3f18c41 Fix a bug in BuidHobGuidType() of PeiHobLib that it does not adjust the hob length to be multiple of 8. This does not follow the spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8873 6f19259b-4bc3-4df7-8a09-765794883524
2009-07-10 10:03:46 +00:00
eric_tian f6839dd616 fix a typo of missing a colon sign after a label symbol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8339 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-20 01:58:40 +00:00
eric_tian dfbb47dbd5 fix a typo of missing a colon sign after a label symbol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8332 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-19 05:50:53 +00:00
eric_tian b27af9d2c5 As ECP package is EDKI style, the AutoGen.h will not include anything. So if we use some basic data structures, we should manually include EdkIIGlueBase.h file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8330 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-19 05:39:32 +00:00
eric_tian 34e4a9a651 cleanup the .S file to wrap all public symbols with ASM_PFX() macro,which is used to generate underscore prior to public symbol or not within various GCC distribution versions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8317 6f19259b-4bc3-4df7-8a09-765794883524
2009-05-15 03:25:20 +00:00