coreboot-kgpe-d16/src/include/cpu/x86
Subrata Banik 53b08c347f cpuid: Add helper function for cpuid(1) functions
This patch introduces 3 helper function for cpuid(1) :

1. cpu_get_cpuid() -> to get processor id (from cpuid.eax)
2. cpu_get_feature_flags_ecx -> to get processor feature flag (from cpuid.ecx)
3. cpu_get_feature_flags_edx -> to get processor feature flag (from cpuid.edx)

Above 3 helper functions are targeted to replace majority of cpuid(1)
references.

Change-Id: Ib96a7c79dadb1feff0b8d58aa408b355fbb3bc50
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/30123
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
2018-12-13 04:32:57 +00:00
..
bist.h x86 BIST: Fix missing include 2016-11-24 21:39:41 +01:00
cache.h Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
cr.h src: Remove unneeded include "{arch,cpu}/cpu.h" 2018-11-12 09:22:18 +00:00
gdt.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
lapic.h Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
lapic_def.h src/include: Remove spaces before tabs 2017-03-12 15:45:37 +01:00
mp.h cpu/x86: Add support to run function on single AP 2018-05-19 01:16:06 +00:00
msr.h cpuid: Add helper function for cpuid(1) functions 2018-12-13 04:32:57 +00:00
mtrr.h soc/intel/common: Bring DISPLAY_MTRRS into the light 2018-11-23 08:34:16 +00:00
name.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pae.h cpu/x86: add limited runtime identity page mapping 2018-04-26 06:55:59 +00:00
post_code.h src/include: Add guards on all header files 2017-08-01 23:04:15 +00:00
smm.h smmstore: make smmstore's SMM handler code follow everything else 2018-12-05 13:31:22 +00:00
tsc.h nb/intel/fsp_rangeley: Use MSR_PLATFORM_INFO instead of 0xce 2018-06-14 10:00:03 +00:00