Commit Graph

517 Commits

Author SHA1 Message Date
klu2 fdbc81c8cd Fix run broken issue for EdkUnixPkg
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2560 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-11 09:19:16 +00:00
xli24 735561c27f Allocate memory in DebugSupport beforehand, in order to avoid calling memory allocation services in high TPL level.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2556 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-11 03:15:15 +00:00
vanjeff 396514f590 removed ICC compile issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2553 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-10 07:10:28 +00:00
vanjeff 9c198b4066 Perfected MSA files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2552 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-10 05:09:57 +00:00
lgao4 26aa0c2ff5 Clean up the following module msa files, they are three networt and two PCD modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2551 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-09 07:37:43 +00:00
qwang12 5101d837ed Remove 3 library instances: EdkDxeDebugLibReportStatusCode, EdkUefiDebugLibConOut and EdkUefiDebugLibStdErr in EdkModulePkg.
1) EdkUefiDebugLibConOut, EdkUefiDebugLibStdErr should be replaced by respective library instance in MdePkg
2) We will have a replacement implementation for EdkDxeDebugLibReportStatusCode to emulate the EDK I implementation with a gEfiDebugMaskProtocolGuid which allows Developer to Set debug level using SHELL command err.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2550 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-09 03:51:50 +00:00
klu2 39d03acf63 A typo in comments that alignment should be 8 for IPF
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2549 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-09 03:39:37 +00:00
klu2 72c11e3aaf Change the alignment of variable from 2 back to 1 for compability of test case.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2548 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-09 03:36:37 +00:00
qwang12 abb234751e 1) Initialize gBS, gST, gImageHandle in UefiBootServicesTableLib.c to NULL
2) Add DxeCore infix to the module local variable gBS, gST, gRT, gDS in DxeMain.c. This is to solve the name conflict with UefiBootServicesTableLib which is defined in MDE Library Spec. 
3) Add in check for gBS and gST in UefiDebugLibConOut/DebugLib.c and UefiDebugLibStdErr/DebugLib.c and MdePkg/Library/DxeReportStatusCodeLib/ReportStatusCodeLib.c. If they are not initialized, the API will just return with a error message.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2546 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-06 06:36:47 +00:00
klu2 18fda0cec0 The ALIGNMENT definition has been moved to common header file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2545 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-05 09:27:56 +00:00
xgu3 5d10269c06 To fix
USB Keyboard driver should add F11, F12 support
DxeIpl should not hardcode 36bit address

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2543 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-05 09:04:12 +00:00
lgao4 8d8daecb54 Clean up the following module msa files, they are edkmodule package ftwlit, Crc32SectionExtract, NullMemoryTest, PeiMemoryTest, MonotonicCounter modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2542 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-05 09:00:46 +00:00
klu2 20798fc576 1) Change the alignment from 1 to 2 for IA32 and X64 arch.
2) Move ALIGNMENT macro to common variable.h file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2538 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-05 08:12:30 +00:00
lgao4 13de892cc3 Change BDS to get the default logo picture by default bmp logo guid.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2533 6f19259b-4bc3-4df7-8a09-765794883524
2007-04-04 06:24:26 +00:00
qhuang8 73ebf379a4 1. Advance IP in case of Break(3) in breakpoint exception
2. Add stack management algorithm to avoid pool allocation during EBC instruction interpretation. 
3. Add multi EBC image support.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2519 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-30 08:44:55 +00:00
qhuang8 02dab42847 Variable driver: add checking to make sure flash is properly initialized
PxeBc driver: fix the issue that the giaddr is wrongly interpreted to "gateway address"

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2515 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-29 07:48:48 +00:00
vanjeff c8dd259d61 1. Use MemoryAllocationLib to replace boot services memory services functions in EdkModulePkg.
2. Added NULL pointer check before calling FreePool () to fix bugs when free memory.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2513 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-29 06:58:38 +00:00
xgu3 4b2e068430 [Source] Useless assigning statement in ata and atapi
NT32, WinNT GOP PixelFormat should be BltOnly
NT32, SimpleTxtIn should add F11, F12 support   


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2511 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-29 03:42:03 +00:00
vanjeff 0f6b6f755b 1. Removed #ifndef to enable Capsule architecture protocol on IPF.
2. Added ASSERT (FLASE) in SwitchStack ().
3. Removed unreached branch from UefiNotTiano.c.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2510 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-28 03:28:13 +00:00
klu2 203cff9245 add new blank line for GCC build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2508 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-27 05:18:34 +00:00
vanjeff c0b162a2c0 1. Removed definition for EFI_1_1 from module ConSplitter
2. Removed old Intel Framework specification extension for Media Firmware file path from Uefi/UefiSpec.h and UefiLib/UefiNotTiano.c
3. Added EFI revision check in UefiLib/UefiNotTiano.c and removed one EFI_SPECIFICATION_VERSION wrapper in Uefi/UefiSpec.h.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2505 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-26 07:00:30 +00:00
qwang12 e2180ee88c Add return EFI_INVALID_PARAMETER if pointer type parameter for UEFI and Tiano Decompress protocol function is NULL. The check is necessary. The protocols is built based on library instance of the Decompress Library. The Library class in MDE library spec 0.60e only define to do ASSERT for NULL pointer input.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2501 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-22 10:36:04 +00:00
klu2 c91c4f470e Need no zero pool for improving performance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2500 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-22 09:34:49 +00:00
vanjeff cb41bea732 1. Removed AsmSwitchStackAndBackingStore from BaseLib.h
2. Modified SwitchStack definition update to MWG 0.60e.
3. Added BaseLib/Ipf/InternalSwitchStack.c and removed BaseLib/Ipf/Non-existing.c
4. Updated any references of AsmSwitchStackAndBackingStore to SwichStack on IPF.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2499 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-22 03:03:32 +00:00
klu2 54be95a116 fix the build broken issue
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2497 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-21 07:35:53 +00:00
vanjeff ce8bd86e8f 1. Removed #ifdef EDK_RELEASE_VERSION from all c files for all modules
2. Removed #ifdef EFI_SPECIFICATION_VERSION from all c files for all modules
3. Added comments for file VariableWorker.c

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2495 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-21 01:27:01 +00:00
qwang12 6dcb94c713 Change the TPL lock level to EFI_TPL_NOTIFY. Variable Service is called in ResetSystem runtime service. As there is no restriction stated in UEFI spec about TPL restriction for ResetSystem, so SCT does test it under NOTIFY level. This fix can be temperary. We may revert it back after discussion with Architects..
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2492 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-20 10:04:54 +00:00
vanjeff 9cc655d5a9 Removed #ifdef SNP_DEBUG and used debug lib to output information.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2490 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-20 06:59:54 +00:00
vanjeff 3aaddf9276 1. Removed #ifdef SNP_DEBUG and used debug lib to output information
2. Rename PcdPlatformNoCsmSupport to PcdPlatformCsmSupport.
3  Removed #ifdef EFI_NO_CSM and used PcdPlatformCsmSupport.
4. Removed #ifdef ALIGNMENT from C Variable.c and added 2 files Variable/Pei/Ipf/VariableWorker.c and Variable/Pei/VariableWorker.c


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2487 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-20 02:44:09 +00:00
qwang12 b06af5d71e Change the EfiAquireLock with RaiseTPL as the call to Boot Service UnloadImage can be nested in another call to UnloadImage. So RaiseTPL is proper (EfiAcquireLock will ASSERT when these this API are nested in the call chain) in this situation to server the sychronization purposes.
The same change has been done to Boot Service Exit with the same reason applied.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2486 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-19 09:05:41 +00:00
klu2 4bdeaa6bb4 Cleanup the msa for PeiVariable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2485 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-16 09:31:08 +00:00
qhuang8 3c17ed18fa Fix a critical bug: When reading block succeeds but detecting MBR fails, it should return error code instead of EFI_SUCCESS.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2483 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-16 09:24:10 +00:00
klu2 bb60dd97af Fix the issue that the variable Unicode string may be not aligned on 16-bit boundary in flash (it dependent on ALIGNMENT macro in EdkModulePkg\Universal\Variable\Pei\x64\VarMachine.h). The unalignment Unicode string will lead assert of StrCmp, StrCopy, StrLen function in Mde library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2482 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-16 09:12:20 +00:00
vanjeff 7af45bf1f0 1. Added PcdNtEmulator and Removed MACRO EFI_NT_EMULATOR
2. Updated *.fpd of all Package.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2481 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-16 05:36:52 +00:00
lgao4 6626ad113e Perfect the msa of the following modules, DiskIo, Partition, English and Ebc.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2480 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-16 02:33:49 +00:00
vprabhal 8f6b43f235 fixed a build error with Intel IPF compiler
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2479 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-16 00:30:52 +00:00
klu2 137749b7ed Fix the issue that HiiGetForms does not return correct BufferLength
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2474 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-15 07:08:48 +00:00
klu2 f4e8c17bc2 Fix the issue of Wide char help strings cannot break into multiple lines correctly
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2473 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-15 06:30:33 +00:00
vanjeff e5f461a850 1. Remove #ifdef _MSC_EXTENSION_ from all source files
2. Remove #ifdef _GCC_ from all resource files
3. Remove #if 0 from all resource files
4. Remove #ifdef MDE_CPU_IPF and #ifdef MDE_CPU_EBC
5. Remove #progam from Decode.c
6. Remove #ifdef TIANO_EXTENSION_FLAG from source files
7. Remove #ifdef SUPPORT_IPV6, since code base doesn't support IPV6 at all.
8. Remove #ifdef SpecialNowaitVersion from pxe_bc_mtftp.c, since it's only used for test.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2470 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-15 02:33:16 +00:00
vprabhal aa156393bf changed the guid assignment from constant array to hi and low UINT64s (Intel compiler was using a global variable to assign an array which is not OK at run time)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2469 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-14 23:45:03 +00:00
vprabhal e8d4831b19 changed the guid assignment from constant array to hi and low UINT64s (Intel compiler was using a global variable to assign an array which is not OK at run time)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2468 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-14 23:44:44 +00:00
vprabhal fce67685cc changed the guid assignment from constant array to hi and low UINT64s (Intel compiler was using a global variable to assign an array which is not OK at run time)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2467 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-14 23:43:34 +00:00
vprabhal f7211e3cec redefined the guids as _hi and _lo to deal with intel compiler's method of assigning array constants using global variables
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2465 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-14 20:36:54 +00:00
lgao4 08aa37e015 Add check whether input parameter is NULL before call freepool API defined in MDE.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2461 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-14 07:42:20 +00:00
qwang12 675a7b0b3f Remove the BugBug in package header file for DXE_CORE and DXE_DRIVER which force every driver to include MdePkg/Include/Library/PeCoffLib.h.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2458 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-14 02:14:28 +00:00
lgao4 2c3b5ec562 Clean up the gBS sevice (CopyMem, SetMem, AllocatePool, FreePool) with the corresponding APIs defined in Mde library class for these modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2456 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-14 02:02:43 +00:00
qwang12 657579afc2 STATIC should be prefixed for internal functions to pass the stringent compiler such as Intel ICC for IPF with /WX /W4 options.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2454 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-13 03:33:42 +00:00
qwang12 0fe0b10e10 Add a lock to protect the critical region in Service APIs for gEfiSimpleTextOutProtocolGuid Protocol to prevent re-entrance of the same API from from different TPL level. In UEFI 2.1 spec, it is state that the service API for this Protocol is callable at EFI_TPL_NOTIFY level.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2447 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-12 09:42:34 +00:00
qwang12 6544f5188c Resolve the build break caused by changes to DxeCore.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2445 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-12 09:24:41 +00:00
qwang12 6ed71dcc32 Add a lock to protect the critical region in Service APIs for UEFI Runtime Variable Service to prevent re-entrance of the variable service API from from different allowable TPL level. In UEFI 2.x and EFI 1.10 spec, EFI_TPL_CALLBACK is the allowable TPL level for Variable services.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2444 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-12 07:56:16 +00:00