Commit Graph

363 Commits

Author SHA1 Message Date
xli24 2d57c546e0 Add volatile to modify LockValue in AcquireLockOrFail().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2006 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-23 09:01:43 +00:00
bbahnsen 02ad42aed8 Port a couple of files to gnu assembly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2001 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-23 00:22:20 +00:00
mdkinney 205f41d551 Add PeiServicesTablePointerLibKr1 to the FPD and SPD file for the MdePkg
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1994 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-22 00:42:57 +00:00
mdkinney 9e95f418cc Add PeiServiceTablePointerLib that uses KR1 to save/restore the PEI Services Table Pointer
This library is only valid for Ipf

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1993 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-22 00:41:04 +00:00
mdkinney 9cbd688b1e Add 64-bit I/O port functions that ASSERT()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1992 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-22 00:39:03 +00:00
mdkinney ea8433c9cf Remove DXE Core Entry Point Library Class
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1991 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-22 00:37:34 +00:00
mdkinney 924c490ad3 Remove Peim Entry Point Library Class
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1990 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-22 00:36:59 +00:00
vanjeff 83b3efca13 fix one bug on Timer Frequency return.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1983 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-20 06:26:55 +00:00
mdkinney 2043cd261c Remove duplicate <Extern> for the lib constructor and destructor
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1979 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-18 23:13:54 +00:00
mdkinney 7ac2bbc147 Add EFI_DELIVERY_MODE to SalApi.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1977 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-18 05:03:37 +00:00
mdkinney da0559bf73 Disable warning when assigning a function pointer to a data pointer
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1976 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-18 05:02:54 +00:00
bbahnsen dfd52cc1c6 Add Thunk16.S -- needs to be ported from masm.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1971 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-17 16:54:19 +00:00
bbahnsen a1ef15526b Add gnu x86 assembly sources.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1970 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-17 16:48:52 +00:00
bbahnsen 32804425d7 Add an underscore for gcc.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1969 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-17 16:43:12 +00:00
lgao4 b026832ead Add gcc macro to remove pack() for gcc build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1962 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-16 06:19:47 +00:00
lgao4 4a0b6afe5a Add pack(1) for boot scipt structure.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1960 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-16 05:49:22 +00:00
bbahnsen e29e52e7c0 Initial port to x86_64 gnu assembly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1959 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-16 01:11:41 +00:00
bxing 38b5365e39 Enabled 4G+ memory in thunk.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1957 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-15 09:31:03 +00:00
gtian 3673b8bf33 Add IPF support in Base IO Lib, and related change in fpd file
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1952 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-14 09:34:30 +00:00
bbahnsen 1547e08c56 Add ULL to integer literals for gcc support.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1946 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-14 06:48:07 +00:00
vanjeff 6d864b7a91 Rename PcdPlatformBusSpeed to PcdFSBClock and update help text.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1943 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-14 05:43:15 +00:00
vanjeff 885dc4d85a rename PcdGenericPlatformBusSpeed to PcdFSBClock to avoid confusing.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1940 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-13 09:27:49 +00:00
vanjeff 8569244ed1 1. Rename PcdPlatformBusSpeed to PcdGenericPlatformBusSpeed
2. Added PcdComponentNameDisable and PcdDriverDiagnosticsDisable for UefiDriverModuleLib

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1936 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-13 07:11:58 +00:00
mdkinney ea1e4c10aa Set the stack alignment for X64 to 16 bytes per the X64 Calling Convention
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1933 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-13 06:44:15 +00:00
xli24 c9708dddc1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1931 6f19259b-4bc3-4df7-8a09-765794883524 2006-11-13 03:40:52 +00:00
vanjeff 0401b900ad added help text for PcdPlatformBusSpeed
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1928 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-10 06:07:39 +00:00
mdkinney b5b60e8b49 Fix ALIGN_POINTER() macro. The pointer (p) passed in must always be converted to (UINTN) prior to performing math operations.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1922 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-09 22:01:56 +00:00
mdkinney caae4de6b6 Add #define CPU_STACK_ALIGNMENT to the ProcessorBind.h for each of the supported CPU architectures. This value is sizeof(UINTN) for IA-32, X64, and EBC. It is 16 bytes for IPF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1920 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-09 21:26:29 +00:00
jtang12 a6b6ec4d58 Update processor socket type definition to comply with SmBios 2.5 spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1916 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-08 06:42:39 +00:00
jtang12 e4a246f134 Changed definitions in Legacy16.h and LegacyBios.h to be compatible with CSM 0.96
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1910 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-08 02:10:54 +00:00
vanjeff b219108e51 added PcdPlatformBusSpeed for BaseTimerLibLocalApic, thus this timer instance needn't depend on types of CPUs
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1909 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-07 08:43:22 +00:00
cwu11 b51f14f4d6 This check-in add Pci23.h, Pci30.h, EfiPci.h and take those originally put in Pci22.h to their proper position in the new files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1907 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-07 03:02:33 +00:00
xli24 38af355c85 Ia32/DivS64x64Remainder.c is not tool-chain specific, it supports both gcc and msft, so the ToolChainFamily="MSFT" description is incorrect.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1904 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-06 08:13:19 +00:00
cwu11 3681d193ed This check-in fixed the following bugs:
1.	Pci22.h EFI_LEGACY_EXPANSION_ROM_HEADER definition error
(MdePkg\Include\IndustryStandard\Pci22.h; Tools\CCode\Source\Include\IndustryStandard\Pci22.h)
2.	SetVariable() with DataSize=0xffffffff will cause system hang
(EdkModulePkg\Universal\Variable\RuntimeDxe\Variable.c)
3.	Windows XP Pro & XP HOME Fails to Install from Retail CD
(EdkModulePkg\Bus\Pci\Pcibus\Dxe\PciResourceSupport.c)
4.	Pci22.h header file needs to add some recent type
(MdePkg\Include\IndustryStandard\Pci22.h; Tools\CCode\Source\Include\IndustryStandard\Pci22.h)
5.	Fix issues when ODD cannot boot from Sil0680 PCI-IDE controller
(EdkModulePkg\Bus\Pci\PciBus\Dxe\PciOptionromSupport.c;
EdkModulePkg\Bus\Pci\PciBus\Dxe\PciBus.msa;
EdkModulePkg\ EdkModulePkg.spd)


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1900 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-06 04:20:32 +00:00
xli24 f55618484b Remove BaseIoIntrinsicLib reference in IPF and EBC modules
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1897 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-06 02:26:11 +00:00
qwang12 e0759a83b9 Add EfiGpt.h, ElTorito.h, Mbr.h header files which are for EFI GUID Partition table, ElTorito bootable CD fomrat and Legacy Master Boot Record format into Industry Starndard.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1893 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-03 05:42:01 +00:00
xli24 29b89ff0c0 According to MDE Library specification, BaseIoLibIntrinsic Module only supports IA32 and X64, but the MSA description says it supports IA32, X64, IPF, and EBC. Now IPF and EBC have been removed from description.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1892 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-03 03:35:22 +00:00
cwu11 511710d68f 1. Add the fix for the following Bugs:
i)	BMM_FAKE_NV_DATA definition inconsistent in bm.vfr and BootMain.h
        (EdkNt32Pkg\Dxe\PlatformBdsDxe\Generic\BootMaint\BootMain.h)
ii)	Change some files’ EOL(end of line) format to DOS. Some file use even mixed style EOL.
   (EdkModulePkg\Universal\DevicePath\Dxe\DevicePath.c, DevicepathFromText.c, DevicePathUtilities.c;
EdkModulePkg\Universal\Disk\DiskIo\Dxe\diskIo.c; MdePkg\Library\UefiLib\UefiNotTiano.c)
iii)    Change some illegal characters in many files, the problem is mainly connected with people using Chinese Input method to input symbols such as ' " - ?, etc. Multiple files are influenced.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1890 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-03 02:47:43 +00:00
ajfish 0ffc5441a7 Updated EFAPI definition for x64 GCC. Original thinking was to add optional EFIAPI support to standard GCC. New thinking is to support EFIAPI as a seperate processor target. This is to reduce validation risk to the main line GCC. Update the definition and comments to match current thinking.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1883 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-01 18:26:48 +00:00
qhuang8 8aaf5a0d13 Remove the reference to non-exist file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1868 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-31 02:20:03 +00:00
mikewuping d4f397c031 1. In event.c, a function's name is not spelled correctly, a typo.
2. In Graphics.c, Memory Leak in Graphics Library, ConvertBmpToUgaBlt().
3. In HobLib.c, PeiBuildHobModule and three other functions do not zero hob reserved data area according to HOB spec v0.9.
4. In statuscode.h, the number of definition of EFI_SW_PEIM_PC_CAPSULE_START is equal to EFI_SW_PEIM_PC_CAPSULE_LOAD.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1861 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-30 07:47:44 +00:00
yshang1 f81f558de8 Follow up tracker EDKT285.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1826 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-23 06:10:44 +00:00
jtang12 3fc556d665 Add definition for FB DIMM.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1825 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-23 05:25:25 +00:00
qhuang8 4bacc21072 Remove the library instance of BaseReportStatusCodeLibNull
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1823 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-23 04:38:50 +00:00
ajfish c993d0dac4 Did not check in new files correctly the first time!
Updated FPD files that include Runtime driver as a new lib was added to Runtime Driver for the cache flush. Removed Cache Flush routine from EDK DXE SAL Lib.
Cleaned up BaseLib IPF cache routines to only Flush ranges when needed and not to flush the entire cache. 

Removed the need for processor specific code in the Runtime driver by using MDE Cache Lib. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1822 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-23 03:58:50 +00:00
ajfish 92ea7f231b Updated the Runtime Driver to use the MDE libs for cache flush and removed local copy of Cache flush code. Updated FPD files that include Runtime driver as a new lib was added to Runtime Driver for the cache flush. Removed Cache Flush routine from EDK DXE SAL Lib.
Cleaned up BaseLib IPF cache routines to only Flush ranges when needed and not to flush the entire cache. 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1811 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-22 07:32:16 +00:00
ajfish b077fb7492 Removed duplicate PalCallStatic functions in different libraries. Moved ReadItc and InvalidateInstructionCacheRange to the BaseLib so other libs don't need .s files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1810 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-22 03:06:05 +00:00
ajfish cd4903c497 Removed duplicate PalCallStatic functions in different libraries. Moved ReadItc and InvalidateInstructionCacheRange to the BaseLib so other libs don't need .s files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1809 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-22 03:03:45 +00:00
jtang12 7f62acd2fa Added definition of SMBIOS type 15 - System Event Log.
Added some missing field to SMBIOS type 1 - System Manufacturer.
Added some missing field to SMBIOS type 0 - BIOS information.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1801 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-20 03:17:29 +00:00
rsun3 3683e55034 Add two new data hub subclass related definitions per SMBIOS 2.4 spec.
1. memory device type for DDR2
2. System slot type for Pci Express

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1772 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-17 07:04:53 +00:00
qwang12 2193b507f0 DxeCore.h, PeiCis.h and Uefi.h should not include <Protocol/Pcd.h>. If a module need to resolve PCD macro (FixedAtBuild, BinaryPatch or Dynamic), the module should declare that it consume PcdLib library class in MSA file. The Edk II build tool will include "PcdLib.h" in "Autogen.h".
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1699 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-10 03:39:55 +00:00
rsun3 2f8df87003 Fix a bug in InternalMathDivRemU64x64(). The bug is that the 64-bit divisor is designed to be loaded to ecx:ebx but the high 4 byte of the divisor is forgotten to be loaded to ecx
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1693 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-09 10:09:26 +00:00
bxing 73c47db8c7 Optimized HighBitSetXX() functions
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1689 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-08 08:45:59 +00:00
mdkinney 705d3a7756 Use intrinsic
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1670 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-04 23:56:11 +00:00
mdkinney 9730cac8a1 Use intrinsic
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1669 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-04 23:50:23 +00:00
mdkinney 32a4d5cecf Use intrinsic
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1662 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-04 23:07:25 +00:00
mdkinney d8e5077483 Fix GCC build issue
Take advantage of some intrinsics from MSFT build tools


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1661 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-04 23:06:00 +00:00
mdkinney 6fe6627470 Add support for DEBUG and RELEASE builds of this FPD file.
Remove all FLAG settings from this FPD file.  This functionality has moved into tools_def.txt


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1660 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-04 23:04:24 +00:00
lgao4 542834ce80 Remove the duplicated Copy Right in msa header.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1634 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-27 09:26:40 +00:00
qhuang8 b7089db120 1.Fix .global issue in GAS (EdkT207).
2.Fix Label start with @ (EdkT208).

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1610 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-25 10:05:26 +00:00
vanjeff 148ac238cc added ACPI_TIMER_FREQUENCY definition
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1577 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-20 09:15:14 +00:00
mdkinney 23086ba84c Optimize the size of the Base Library for the MSFT 32-bit tool chains by taking advantage of inline assembly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1567 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 19:04:40 +00:00
mdkinney b053781829 Add GLOBAL_REMOVE_IF_REFERENCED to the declaration of module globals in the Print Library that were still present in the final image even through there were no references to those module globals.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1566 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 19:01:18 +00:00
vanjeff a8e756dad0 add EFIAPI for those constructor funcitons declaration
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1547 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-18 02:07:18 +00:00
vanjeff 34913f248c typecast some return values
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1542 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-15 02:36:38 +00:00
bxing f23d790a79 Added an extra GDT entry to the GDT used by thunk code. SS register will always be loaded as flat segment before switching to 16-bit mode, since SS might not be always valid for NULL selector is allowed in 64-bit mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1541 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-14 16:04:47 +00:00
vanjeff 5117b83be8 update GetPerformanceCounterProperties() declare
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1518 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 01:10:51 +00:00
bxing ed9610eb9c Fixed a bug in WriteBackInvalidDataCache() that always flush cache lines even when the argument Length is zero.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1504 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-09 02:44:57 +00:00
lgao4 8cf2c0a7d7 Change PcdDebugPrintErrorLevel PCD declare in msa as DYNAMIC, because this PCD type can be
FIXED_AT_BUILD and PATCHABLE_IN_MODULE.
Change Some WINNT PCDs type declared in EdkNt32Pkg.spd as DYNAMIC, because they is used in Nt32 emluator platform as DYNAMIC type.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1494 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-07 08:24:27 +00:00
lgao4 2f3fb65dd1 Set MdePkg.fpd, EdkModulePkg.fpd and Nt32.fpd default build directory to workspace root build directory according to Jordon's suggestions.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1486 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-06 09:56:16 +00:00
jwang36 22a8f52f8e Added two #pragma to disable 4505 & 4206 warnings for MSFT compiler. This is for compiling source files with pre-compiled header file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1442 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-05 01:43:14 +00:00
klu2 7085597507 Fix track EDKT106 & EDKT112: map LibPcdSetPtr function for PatchPcdSetPtr macro function defined in PcdLib library class
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1381 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-24 17:04:56 +00:00
bxing ddc316e240 Changed GetPerformanceCounter() to use the most efficient mean to unsigned extend an UINT32 value.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1343 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-22 01:36:09 +00:00
bxing f094c270ee A workaround to a compiler bug that causes the high order 32 bits of GetPerformanceCounter() being indeterminate.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1336 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-21 09:32:26 +00:00
bxing eeb1cd5af3 1. Added Non-existing.c in BaseLib to assert no invocations of SwitchStack() on IPF.
2. Added SwitchIplStacks() function to DxeIplPeim to encapsulate arch details on stack switching.
3. Added PeiSwitchStacks() function to PeiMain to encapsulate arch details on stack switching.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1328 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-21 02:53:29 +00:00
bxing 6e028650e7 Fixed a bug causing the high order double word of values returned by GetPerformanceCounter() became -1.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1322 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-18 08:33:00 +00:00
klu2 ca844f3623 Continue to fix EDKT187.
After discussion with ouyang, qian and shi, carl, we find it is no necessary to add PcdLib according to whether library instance use PcdLib.
In this patch. I remove original fixing and correct some MSA file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1315 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-17 16:23:46 +00:00
bxing 681dbac98c Added AsmSwitchStackAndBackingStore() to BaseLib.h for stack switching on IPF.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1305 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-17 05:32:47 +00:00
xgu3 64ec22c0f1 Add boot script dispatch opcode 2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1292 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-16 07:23:37 +00:00
qhuang8 94f446c081 Add PcdPciExpressBaseAddress info to MdePkg.spd
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1275 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-15 09:51:45 +00:00
vanjeff 9c7790d2cb 1. Adjust might be 64bit, so we need to typecast it to UINT32 firstly.
2. Synchronization modification described in Tracker EDKT182 to all dependent files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1270 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-15 06:35:47 +00:00
yshang1 9136b0e0ba Add more comments in UefiDriverModelLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1249 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-14 05:18:48 +00:00
yshang1 af7964350b git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1245 6f19259b-4bc3-4df7-8a09-765794883524 2006-08-14 03:34:45 +00:00
yshang1 b059e41102 Add function headers in UefiDriverModuleLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1244 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-14 03:33:32 +00:00
ajfish 317f832ef8 Fixed bugs found when this code was ported into R8.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1240 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-11 18:04:56 +00:00
bxing 3a5dcc063c Removed unnecessary MSR access in InternalX86Delay()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1228 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-10 04:42:10 +00:00
lgao4 a682ecebfe Sync this file with MiscSubClass spec and add some struture alias to use them more conviniently.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1226 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-09 09:45:32 +00:00
bxing cea9bda05a 1. Added ReadWriteBarrier() before and after each I/O read/write function.
2. Removed all ReadWriteBarrier() function calls in all MMIO functions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1224 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-09 06:38:30 +00:00
lgao4 fbea738a07 Move FileInfo.h, FileSystemInfo.h, FileSystemVolumeLabelInfo.h from protocol directory to guid directory, because these three files define the related GUID not protcol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1204 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-07 09:46:03 +00:00
xgu3 4dbd074e66 Modify dispatch opcode for standalone boot script executor
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1199 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-07 07:51:56 +00:00
lgao4 3542a1ea2f Change PcdReportStatusCodePropertyMask default value from 0x7 to 0x6, don't print Progress Code Info.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1186 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-03 11:32:57 +00:00
qhuang8 57315d7035 Fix a typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1176 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-02 04:33:35 +00:00
vanjeff 4a78c00aac 1. cleanup functions header in PeCoffLoaderEx.c
2. fixed link error in EnablePaging64.asm

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1175 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-02 03:19:19 +00:00
bxing eb227e96bd 1. Updated function headers for all assembly function
2. Optimized register usage in SetMemXX functions in all lib instances
3. Fixed a logical error in CopyMem for all lib instances


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1139 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-28 07:28:19 +00:00
lgao4 c941b270ea TeImage Signature should be got from Te pointer, not Pe pointer
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1136 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-28 06:08:00 +00:00
lgao4 da7dea581d Rename guid variable gEfiSmmPeiSmramMemoryReserve to gEfiSmmPeiSmramMemoryReserveGuid compatible with guid variable CName style
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1122 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-27 13:01:53 +00:00
klu2 aa0dc7b430 Fix a warning issue under CYGWIN_GCC building:
A function cannot be declared as returning a data object having a volatile or const type, but it can return a pointer to a volatile or const object.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1121 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-27 12:25:28 +00:00
ajfish 236877a6a7 Added back safety check for PE/COFF image walking. I think the safety check is broken in some places (Linux) but we need to investigate more.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1108 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-26 23:34:08 +00:00
ajfish 2ce311322c Removed cross references from PciCf8Lib and PciExpressLib class to PciLib class.
Added PeCoffLoaderGetMachineType to the PeCoffGetEntryPointLibrary Class. Document to be updated.

Added the PeCoffLoaderImageReadFromMemory() and PeCoffLoaderRelocateImageForRuntime () to the PcCoffLib. 

Updated EfiImage.h and removed EFI_IMAGE_OPTIONAL_HEADER and EFI_IMAGE_NT_HEADERS as they were replaced with checking the MachineType.

PeCoffLib – Added checks for MachineType so the PeCoff lib can load any PE32 or PE32+ image. The relocations are still limited to IA32, X64, IPF, and EBC. I also added a re-relocator function to remove PeLoader Code from Runtime Lib. Even though there is only one instance of the re-relocator I wanted to get all the PeCoff loader code together.

Replaced DEBUG_CODE() macro with DEBUG_CODE_START() and DEBUG_CODE_END() so you can debug through the DEBUG_CODE() macros. Also removed PE/COFF code and replaced with library usage.

I also updated the IO Instrinsic lib to use _ReadWriteBarrior() to help with sync problems

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1103 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-26 15:23:35 +00:00
wuyizhong c1e9ba078c Remove duplicated module definition (the same module with the same arch) in FPD.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1093 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-25 08:44:31 +00:00