coreboot/src/include/cpu
Felix Held 1b46e76df9 include/cpu/x86/msr: introduce IA32_MC_*(x) macros
When accessing the MCA MSRs, the MCA bank number gets multiplied by 4
and added to the IA32_MC0_* define to get the MSR number. Add a macro
that already does this calculation to avoid open coding this repeatedly.

Change-Id: I2de753b8c8ac8dcff5a94d5bba43aa13bbf94b99
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56243
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2021-07-14 02:24:39 +00:00
..
amd include/cpu/amd/msr: rename MSR_PSP_ADDR to PSP_ADDR_MSR 2021-02-19 13:20:16 +00:00
intel soc/intel/car: Add support for bootguard CAR 2021-06-22 13:15:09 +00:00
x86 include/cpu/x86/msr: introduce IA32_MC_*(x) macros 2021-07-14 02:24:39 +00:00
cpu.h src/include: Add missing includes 2020-07-26 21:37:35 +00:00