aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-10-19 20:06:42 +0200
committerArthur Heymans <arthur@aheymans.xyz>2022-11-12 14:23:35 +0000
commit407e00dca06e36d2d9b11f998a278109ff330783 (patch)
tree17c3f52517b48bb37344872736f66baf510e1b24 /src/cpu/x86
parent0c9fa6f2ce6d556ec39444c0307c3c9e20053663 (diff)
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 <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68572 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/mtrr/earlymtrr.c2
1 files changed, 1 insertions, 1 deletions
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;