Fix ThunderX2 write-combined PTE flag insanity

Change-Id: I59999a680b556acf3e22ac516f4758e3aee7f355
This commit is contained in:
Balazs Gerofi
2019-01-28 11:06:30 +09:00
committed by Dominique Martinet
parent 649059f2d2
commit 6ed2e5ffc1
4 changed files with 92 additions and 12 deletions

View File

@@ -304,12 +304,3 @@ out:
error, rva, rpa, pgsize);
return error;
}
#ifdef POSTK_DEBUG_ARCH_DEP_12
#define PFN_WRITE_COMBINED PTE_ATTRINDX(MT_NORMAL_NC)
static inline bool pte_is_write_combined(pte_t pte)
{
return ((pte_val(pte) & PTE_ATTRINDX_MASK) == PFN_WRITE_COMBINED);
}
#endif /* POSTK_DEBUG_ARCH_DEP_12 */