@@ -18,6 +18,7 @@
/* Get page attribute fields (PAn) from PAT MSR. */
#define pat_cr_2_paf(pat_cr,n) ((((uint64_t)pat_cr) >> ((n)<<3)) & 0xff)
+/* clang-format off */
/* Effective mm type lookup table, according to MTRR and PAT. */
static const uint8_t mm_type_tbl[MTRR_NUM_TYPES][X86_NUM_MT] = {
#define RS MEMORY_NUM_TYPES
@@ -43,6 +44,7 @@ static const uint8_t mm_type_tbl[MTRR_NUM_TYPES][X86_NUM_MT] = {
#undef WB
#undef RS
};
+/* clang-format on */
/*
* Reverse lookup table, to find a pat type according to MTRR and effective
The array mm_type_tbl initialization is formatted in a way that clang-format can't keep, so disable clang-format on that array initialization. Signed-off-by: Luca Fancellu <luca.fancellu@arm.com> --- xen/arch/x86/hvm/mtrr.c | 2 ++ 1 file changed, 2 insertions(+)