set the PFL1_PCD, if PTATTR_UNCACHABLE is specified. (bug#14)

This commit is contained in:
NAKAMURA Gou
2013-05-17 11:38:06 +09:00
parent 6c3607efe3
commit 0fdf3d3411

View File

@@ -200,7 +200,7 @@ static unsigned long attr_to_l2attr(enum ihk_mc_pt_attribute attr)
static unsigned long attr_to_l1attr(enum ihk_mc_pt_attribute attr) static unsigned long attr_to_l1attr(enum ihk_mc_pt_attribute attr)
{ {
if (attr & PTATTR_UNCACHABLE) { if (attr & PTATTR_UNCACHABLE) {
return (attr & ATTR_MASK) | PFL1_PWT | PFL1_PWT; return (attr & ATTR_MASK) | PFL1_PCD | PFL1_PWT;
} else { } else {
return (attr & ATTR_MASK); return (attr & ATTR_MASK);
} }