From 407e00dca06e36d2d9b11f998a278109ff330783 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 19 Oct 2022 20:06:42 +0200 Subject: include/cpu/msr.h: transform into an union This makes it easier to get the content of an msr into a full 64bit variable. Change-Id: I1b026cd3807fd68d805051a74b3d31fcde1c5626 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/68572 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/cpu/x86/mtrr/earlymtrr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu') diff --git a/src/cpu/x86/mtrr/earlymtrr.c b/src/cpu/x86/mtrr/earlymtrr.c index aa430d5330..b6cc73751d 100644 --- a/src/cpu/x86/mtrr/earlymtrr.c +++ b/src/cpu/x86/mtrr/earlymtrr.c @@ -55,7 +55,7 @@ void set_var_mtrr( void clear_all_var_mtrr(void) { - msr_t mtrr = {0, 0}; + msr_t mtrr = { .raw = 0 }; int vcnt; int i; -- cgit v1.2.3