]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/BaseCacheMaintenanceLib/X86Cache.c
MdePkg/BaseCacheMaintenanceLib: Support IA32 processors without CLFLUSH
authorMichael Kinney <michael.d.kinney@intel.com>
Mon, 27 Apr 2015 19:35:32 +0000 (19:35 +0000)
committermdkinney <mdkinney@Edk2>
Mon, 27 Apr 2015 19:35:32 +0000 (19:35 +0000)
commitd2660fe32d000765cc5d370bdc4452fec9389b2a
tree906c7950d8149bd8eb1d79999f9cd9ebaafeac5b
parentff6955afb58bbe72fe7fee03fb7da08f3902a746
MdePkg/BaseCacheMaintenanceLib: Support IA32 processors without CLFLUSH

Use CPUID Leaf 01 to detect support for CLFLUSH instruction.
If CLFLUSH is supported, use CPUID to determine the cache line size to use with CLFLUSH.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17211 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
MdePkg/Library/BaseCacheMaintenanceLib/X86Cache.c