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>
This commit is contained in:
Arthur Heymans
2022-10-19 20:06:42 +02:00
parent 0c9fa6f2ce
commit 407e00dca0
4 changed files with 26 additions and 36 deletions

View File

@@ -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;