soc/intel/apollolake: Add function to clear MCA in Bank 4
Change-Id: Ic3b88e336a1cb3be5a9281ce266c7d9fb2465799 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/65576 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
138402e7ff
commit
61b66e9a81
1 changed files with 10 additions and 0 deletions
|
|
@ -17,4 +17,14 @@ static inline void flush_l1d_to_l2(void)
|
|||
msr.lo |= FLUSH_DL1_L2;
|
||||
wrmsr(MSR_POWER_MISC, msr);
|
||||
}
|
||||
|
||||
/* Clear MCA in Bank 4 */
|
||||
static inline void clear_mca_bank4(void)
|
||||
{
|
||||
msr_t msr;
|
||||
msr.hi = 0;
|
||||
msr.lo = 0;
|
||||
wrmsr(IA32_MC_STATUS(4), msr);
|
||||
}
|
||||
|
||||
#endif /* _SOC_APOLLOLAKE_CPU_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue