Commit Graph

502 Commits

Author SHA1 Message Date
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
qwang12 c094abe585 Add a lock to protect the critical region in Service APIs for gEfiBlockIoProtocolGuid Protocol to prevent re-entrance of the same API from from different TPL level.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2443 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-12 07:47:33 +00:00
qwang12 d126eaecb0 Add a lock to protect the critical region in UEFI Boot Service API: Exit() and UnloadImage from re-entrance from different TPL level.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2437 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-12 06:26:10 +00:00
lgao4 6c18e19ad5 Perfect the msa of the following console, datahub and DebugPort modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2435 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-09 12:35:51 +00:00
klu2 27061085e5 The latest IPF boot failure is found and is not caused by this fixing, so check-in the fixing again.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2434 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-09 09:04:53 +00:00
qwang12 17fb73c8e1 1) Replace BdsLibGetBootMode with GetBootMode from HobLib of MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2433 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-09 07:25:58 +00:00
qhuang8 df557cca2f 1. Sync definition of EFI_DEBUG_IMAGE_INFO with UEFI spec
2. Make performance data for End of BDS is not recorded in Boot Manager Boot


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2431 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-08 07:04:05 +00:00
xli24 64b41a0710 Fix the issue of Linux cannot boot and reset on IPF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2423 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-07 09:34:54 +00:00
klu2 ee295f87c3 Do not use return value of REPORT_STATUS_CODE_WITH_DEVICE_PATH to override the current function's return status.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2421 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-06 05:27:05 +00:00
klu2 635a3f5c79 Assign IDE_BLK_IO_DEV.UdmaMode when detecting the disk hardware support UDMA mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2418 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 06:42:29 +00:00
vanjeff 8ba8cb28e8 Removed EFI_SIZE_REDUCTION_APPLIED and SIZE_REDUCTION_ISA_COMBINED because one PCD PcdComponentNameDisable has been introduced.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2416 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 03:41:22 +00:00
klu2 9ae2215905 Rollback wrong commit in r2414
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2415 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 02:08:42 +00:00
klu2 8b886edc83 Fix case-sensitive build issue for filename in Linux
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2414 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 02:05:22 +00:00
klu2 2008636e60 Add blank line at end of file to pass GCC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2413 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-05 01:50:40 +00:00
klu2 bc4e770c78 In IdeBus driver block I/O read/write interface, it will always try to use UDMA mode first, if fails, then try to use PIO mode.
This may cause side effects if disk does not support UDMA mode and also let bad performance. 
The modification is to record supported mode and only try supported mode when do disk read/write. 
Also this patch combines the code for read/readex/write/writex to reduce code size.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2412 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-02 08:21:43 +00:00
vanjeff 59e9a3659f 1.replace macros EFI32 with MDE_CPU_IA32
2.replace macros EFIX64 with MDE_CPU_X64
3.replace macros EFI64 with MDE_CPU_IPF

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2411 6f19259b-4bc3-4df7-8a09-765794883524
2007-03-02 05:38:05 +00:00