coreboot/src/cpu/intel
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
..
car src: Remove unneeded include "{arch,cpu}/cpu.h" 2018-11-12 09:22:18 +00:00
common cpuid: Add helper function for cpuid(1) functions 2018-12-13 04:32:57 +00:00
fit CPU/intel: Add missing license headers 2016-02-14 22:45:15 +01:00
fsp_model_406dx cpu/intel/fsp_model_406dx: Drop dead microcode reference 2018-12-03 13:40:46 +00:00
haswell cpuid: Add helper function for cpuid(1) functions 2018-12-13 04:32:57 +00:00
hyperthreading src: Remove unneeded include "{arch,cpu}/cpu.h" 2018-11-12 09:22:18 +00:00
microcode src: Remove unneeded include "{arch,cpu}/cpu.h" 2018-11-12 09:22:18 +00:00
model_6bx src/cpu: Remove unneeded includes 2018-06-01 16:27:00 +00:00
model_6dx src/cpu: Remove unneeded includes 2018-06-01 16:27:00 +00:00
model_6ex nb/intel/i945: Use common SMM_TSEG code 2018-12-03 10:18:14 +00:00
model_6fx src: Move common IA-32 MSRs to <cpu/x86/msr.h> 2018-10-11 21:06:53 +00:00
model_6xx cpu/intel/model_{6xx,f2x,f3x,f4x}: Remove unneeded include 2018-06-06 10:25:55 +00:00
model_65x src/cpu: Remove unneeded includes 2018-06-01 16:27:00 +00:00
model_67x src/cpu: Remove unneeded includes 2018-06-01 16:27:00 +00:00
model_68x src/cpu: Remove unneeded includes 2018-06-01 16:27:00 +00:00
model_69x src/cpu: Remove unneeded includes 2018-06-01 16:27:00 +00:00
model_106cx nb/intel/i945: Use common SMM_TSEG code 2018-12-03 10:18:14 +00:00
model_206ax cpuid: Add helper function for cpuid(1) functions 2018-12-13 04:32:57 +00:00
model_1067x src: Move common IA-32 MSRs to <cpu/x86/msr.h> 2018-10-11 21:06:53 +00:00
model_2065x cpu/intel/model_206{5,a}x: Rework acpi/cpu.asl 2018-11-30 21:52:10 +00:00
model_f2x cpu/intel/model_{6xx,f2x,f3x,f4x}: Remove unneeded include 2018-06-06 10:25:55 +00:00
model_f3x nb/intel/i945: Use common SMM_TSEG code 2018-12-03 10:18:14 +00:00
model_f4x nb/intel/i945: Use common SMM_TSEG code 2018-12-03 10:18:14 +00:00
slot_1 src: Remove unneeded include "{arch,cpu}/cpu.h" 2018-11-12 09:22:18 +00:00
smm/gen1 src: Remove unneeded include "{arch,cpu}/cpu.h" 2018-11-12 09:22:18 +00:00
socket_441 nb/intel/i945: Switch to POSTCAR_STAGE 2018-06-05 07:48:58 +00:00
socket_BGA956 nb/intel/gm45: Switch to POSTCAR_STAGE 2018-06-05 07:49:30 +00:00
socket_BGA1284 cpu/intel: Add socket BGA1284 2015-11-10 00:19:01 +01:00
socket_FCBGA559 nb/intel/pineview: Switch to POSTCAR_STAGE 2018-06-05 07:49:09 +00:00
socket_FCBGA1023 cpu/intel: Add Intel FCBGA1023 socket support 2017-11-07 04:39:14 +00:00
socket_LGA775 nb/intel/x4x: Switch to POSTCAR_STAGE 2018-06-05 07:49:20 +00:00
socket_LGA1155 cpu/intel/model_206ax: Use tsc monotonic timer 2017-06-09 16:27:19 +02:00
socket_mFCPGA478 cpu/intel/socket_mFCPGA478/Kconfig: Add MODEL_6{9,D}X 2018-11-19 08:13:49 +00:00
socket_mPGA478 Remove leftover Intel CPU support 2018-05-24 17:23:41 +00:00
socket_mPGA478MN nb/intel/gm45: Switch to POSTCAR_STAGE 2018-06-05 07:49:30 +00:00
socket_mPGA604 intel/socket_mPGA604: Keep only model f2x 2018-08-17 12:26:36 +00:00
socket_rPGA988B Intel: Remove CACHE_MRC_BIN - 'selected' everywhere in Kconfig 2015-08-25 17:36:45 +00:00
socket_rPGA989 Intel: Remove CACHE_MRC_BIN - 'selected' everywhere in Kconfig 2015-08-25 17:36:45 +00:00
speedstep arch/x86/acpigen.c: Add a method to notify all CPU cores 2018-11-29 12:19:31 +00:00
thermal_monitoring CPU/intel: Add missing license headers 2016-02-14 22:45:15 +01:00
turbo src: Move common IA-32 MSRs to <cpu/x86/msr.h> 2018-10-11 21:06:53 +00:00
Kconfig src/cpu/intel/Kconfig: Remove dead source 2018-11-21 12:10:19 +00:00
Makefile.inc northbridge/intel/fsp_*: Remove legacy SoCs 2018-11-19 15:43:37 +00:00