From 0fdf3d341128f94fd8eb1c59e1b0a1aab2a1c6a8 Mon Sep 17 00:00:00 2001 From: NAKAMURA Gou Date: Fri, 17 May 2013 11:38:06 +0900 Subject: [PATCH] set the PFL1_PCD, if PTATTR_UNCACHABLE is specified. (bug#14) --- arch/x86/kernel/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/memory.c b/arch/x86/kernel/memory.c index 884e9698..a1bf7eb1 100644 --- a/arch/x86/kernel/memory.c +++ b/arch/x86/kernel/memory.c @@ -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) { if (attr & PTATTR_UNCACHABLE) { - return (attr & ATTR_MASK) | PFL1_PWT | PFL1_PWT; + return (attr & ATTR_MASK) | PFL1_PCD | PFL1_PWT; } else { return (attr & ATTR_MASK); }