mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-18 11:47:30 +00:00
hv: fix one MISRA-C violation in mtrr.c
52 S Unsigned expression negated. Negating unsigned integer leads to confusion. Tracked-On: #861 Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
fe1ace4f56
commit
01cb6ba847
@ -23,7 +23,7 @@ struct fixed_range_mtrr_maps {
|
||||
};
|
||||
|
||||
#define MAX_FIXED_RANGE_ADDR 0x100000UL
|
||||
#define FIXED_MTRR_INVALID_INDEX -1U
|
||||
#define FIXED_MTRR_INVALID_INDEX ~0U
|
||||
static struct fixed_range_mtrr_maps fixed_mtrr_map[FIXED_RANGE_MTRR_NUM] = {
|
||||
{ MSR_IA32_MTRR_FIX64K_00000, 0x0U, 0x10000U },
|
||||
{ MSR_IA32_MTRR_FIX16K_80000, 0x80000U, 0x4000U },
|
||||
|
Loading…
Reference in New Issue
Block a user