summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg
Commit message (Collapse)AuthorAgeFilesLines
* sync patch r11664, r11670 from main trunk.vanjeff2011-05-184-4/+16
| | | | | | Clear the direction flag in interrupt/exception handlers' assembly entry code before calling C functions to follow the UEFI calling convention. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@11677 6f19259b-4bc3-4df7-8a09-765794883524
* sync patch r10783, r10787 from main trunk.vanjeff2011-04-193-3/+8
| | | | | | Add security check to make code run safe. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@11557 6f19259b-4bc3-4df7-8a09-765794883524
* sync patch 10765 from main trunk.vanjeff2010-09-011-6/+23
| | | | | | | | r10765 - Inherit entries from previous IDT when new IDT is installed. Update CS in each inherited IDT entry to match CS for the new GDT. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@10848 6f19259b-4bc3-4df7-8a09-765794883524
* sync patches r10814, r10824, r10827 from main trunk.vanjeff2010-08-278-1/+2046
| | | | | | | | | | | | | r10814 - Add Local APIC Library class defining APIs for common Local APIC operations. Add two Local APIC library instances, one is for xAPIC mode only, the other is for x2APIC capable processors which have xAPIC and x2APIC modes. r10824 - Improve Local APIC library class. Add new library APIs: GetApicVersion(), SendFixedIpi(), SendFixedIpiAllExcludingSelf(), GetApicTimerState(). Remove GetApicTimerDivisor (), its functionality can be covered by GetApicTimerState(). r10827 - Add DisableLvtInterrupts() for the Local APIC library class. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@10832 6f19259b-4bc3-4df7-8a09-765794883524
* Add Checking for MTRR existence.xli242010-03-103-1/+108
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10223 6f19259b-4bc3-4df7-8a09-765794883524
* Add array index check to avoid potential buffer overflow.xli242010-03-042-0/+7
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10179 6f19259b-4bc3-4df7-8a09-765794883524
* Remove svn:executable on *.c, *.h, *.asm, *.S, *.inf and *.asl*jljusten2010-02-257-0/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10087 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up EFI_SPECIFICATION_VERSION and PI_SPECIFICATION_VERSION.klu22010-02-252-4/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10077 6f19259b-4bc3-4df7-8a09-765794883524
* roll back changing on save and restore interrupt status, it needn't doing.vanjeff2010-02-241-11/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10059 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Correct File header to ## @filelgao42010-02-238-21/+21
| | | | | | 2. Remove unnecessary .common] postfix on section. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10051 6f19259b-4bc3-4df7-8a09-765794883524
* Add Memory Allocation Library instance for modules of type DXE_SMM_DRIVERmdkinney2010-02-141-0/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10004 6f19259b-4bc3-4df7-8a09-765794883524
* Use atomic AsmDisableCache() and AsmDisableCache() functions instead of ↵mdkinney2010-02-141-20/+14
| | | | | | AsmWriteCr0() and AsmWbinvd() calls git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9998 6f19259b-4bc3-4df7-8a09-765794883524
* UefiCpuPkg/CpuDxe: Fix build errorjljusten2010-02-101-4/+1
| | | | | | This driver was not building following the r9935 & r9941 changes. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9969 6f19259b-4bc3-4df7-8a09-765794883524
* UefiCpuPkg: Add CpuDxe driver to UefiCpuPkg.dsc for build test coveragejljusten2010-02-101-1/+5
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9968 6f19259b-4bc3-4df7-8a09-765794883524
* UefiCpuPkg/CpuDxe: Remove unnecessary OvmfPkg dependencyjljusten2010-02-101-1/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9967 6f19259b-4bc3-4df7-8a09-765794883524
* a)Save and disable CPU interrupt before calling AsmWriteIdtr().vanjeff2010-02-091-0/+13
| | | | | | | b)Restore CPU interrupt status after callng AsmWriteIdtr(). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9956 6f19259b-4bc3-4df7-8a09-765794883524
* Revert incompatible change:jyao12010-02-052-50/+33
| | | | | | | | | | | | 1) No API change from old version. 2) Change MACRO: #define MTRR_NUMBER_OF_VARIABLE_MTRR 32 // the semantics are changed from NUMBER to MAX_NUMBER. #define FIRMWARE_VARIABLE_MTRR_NUMBER 6 // wrong and deprecated #define MTRR_LIB_IA32_VARIABLE_MTRR_END 0x20F // wrong and deprecated #define RESERVED_FIRMWARE_VARIABLE_MTRR_NUMBER 2 // add new one. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9941 6f19259b-4bc3-4df7-8a09-765794883524
* Original MTRR lib hardcode VARIABLE_MTRR as 8. But it is 7 in Core2 if SMRR ↵jyao12010-02-053-43/+156
| | | | | | enabled, and 10 in latest Corei7. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9935 6f19259b-4bc3-4df7-8a09-765794883524
* Adding files from OvmfPkg to common location. This is so multiple packages ↵geekboy15a2010-02-0223-0/+1206
| | | | | | can use pre-built reset vector code. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9911 6f19259b-4bc3-4df7-8a09-765794883524
* Remove unused structuremdkinney2010-01-281-11/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9853 6f19259b-4bc3-4df7-8a09-765794883524
* Minor clean up of DEC file.mdkinney2010-01-271-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9842 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up MtrrLib to remove unnecessary package dependencyqhuang82010-01-262-5/+3
| | | | | | Add it to the [Components] section of UefiCpuPkg for build validation git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9823 6f19259b-4bc3-4df7-8a09-765794883524
* Fix ICC build breakqhuang82010-01-152-9/+9
| | | | | | Fix some typos git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9770 6f19259b-4bc3-4df7-8a09-765794883524
* Fix ICC build breakqhuang82010-01-151-8/+8
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9769 6f19259b-4bc3-4df7-8a09-765794883524
* Add generic CpuIoPei module that produces the CPU I/O PPU using the services ↵mdkinney2010-01-143-0/+1104
| | | | | | of the MdePkg IoLib git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9764 6f19259b-4bc3-4df7-8a09-765794883524
* Update CpuIo2Dxe to also support IPFmdkinney2010-01-144-558/+446
| | | | | | | Clean up CpuIo2Dxe to follow the same design as the IntelFrameworkModulePlg module CpuIoDxe and the UefiCpuPkg module CpuIo2Smm git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9761 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up function header comments to match SMM CPU I/O 2 Protocol definition ↵mdkinney2010-01-141-65/+89
| | | | | | in the MdePkg. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9757 6f19259b-4bc3-4df7-8a09-765794883524
* Update Width check for < 0.mdkinney2010-01-142-3/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9754 6f19259b-4bc3-4df7-8a09-765794883524
* Fix file headermdkinney2010-01-141-11/+8
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9741 6f19259b-4bc3-4df7-8a09-765794883524
* Add module that produces the SMM CPU I/O 2 Protocolmdkinney2010-01-143-2/+509
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9737 6f19259b-4bc3-4df7-8a09-765794883524
* Fixed incorrect syntax for immediate HEX value.geekboy15a2010-01-082-5/+3
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9700 6f19259b-4bc3-4df7-8a09-765794883524
* Removed use of pre-initialized global data in this file as it was causing ↵geekboy15a2010-01-081-25/+28
| | | | | | problems with UNIXGCC tool chain. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9699 6f19259b-4bc3-4df7-8a09-765794883524
* BaseUefiCpuLib: Preserve EBX register in InitializeFloatingPointUnitsjljusten2009-12-162-40/+49
| | | | | | | | The EBX register should be preserved for the IA32 C calling convention. The use of the CPUID instruction was modifying the EBX register, so we push and pop EBX. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9573 6f19259b-4bc3-4df7-8a09-765794883524
* Check in driver to produce CPU I/O 2 Protocol for IA32 and X64 architecture.xli242009-12-077-827/+755
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9522 6f19259b-4bc3-4df7-8a09-765794883524
* Update x64 version of InitializeFpu.asm to use raw op-codes instead of ↵qhuang82009-11-301-1/+4
| | | | | | 'finit' so that some early version of MS assemblers can support. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9496 6f19259b-4bc3-4df7-8a09-765794883524
* Introduce UefiCpuLib library class in UefiCpuPkg and add one instance of ↵qhuang82009-11-258-1/+346
| | | | | | BaseUefiCpuLib. The major purpose of this library class / instance is to provide some routines that are generic for IA32 family CPU git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9480 6f19259b-4bc3-4df7-8a09-765794883524
* Use .p2align directive instead of ambiguous .align directive.qhuang82009-08-201-1/+1
| | | | | | | (Judging from the context, the original .align should means the power of two.) git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9156 6f19259b-4bc3-4df7-8a09-765794883524
* Update to make end-of-line consistent for all source files in MdePkg. There ↵qhuang82009-08-203-810/+810
| | | | | | are no other updates besides that change. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9155 6f19259b-4bc3-4df7-8a09-765794883524
* Remove ".intel_syntax", convert MASM to GAS.gikidy2009-08-172-181/+176
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9079 6f19259b-4bc3-4df7-8a09-765794883524
* Remove ".intel_syntax", convert MASM to GAS.gikidy2009-08-141-168/+159
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9067 6f19259b-4bc3-4df7-8a09-765794883524
* Add CPU DXE driver for IA32 & X64 processor architectures.jljusten2009-05-2710-0/+3119
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8395 6f19259b-4bc3-4df7-8a09-765794883524
* Add MTRR library for IA32 & X64 processor architectures.jljusten2009-05-274-23/+1743
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8394 6f19259b-4bc3-4df7-8a09-765794883524
* Remove unneeded reference to DuetPkg.dec.jljusten2009-02-231-2/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7611 6f19259b-4bc3-4df7-8a09-765794883524
* Add UefiCpuPkg.dsc and UefiCpuPkg.dec for UefiCpuPkg.jljusten2009-02-232-0/+77
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7609 6f19259b-4bc3-4df7-8a09-765794883524
* Moving DuetPkg/CpuIoDxe to UefiCpuPkg. jljusten2009-02-233-0/+827
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7608 6f19259b-4bc3-4df7-8a09-765794883524