summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/ioremap_32.c
diff options
context:
space:
mode:
authorSiddha, Suresh B2008-01-30 13:33:43 +0100
committerIngo Molnar2008-01-30 13:33:43 +0100
commit4138cc3418f5eaa7524ff8e927102863f1ba0ea5 (patch)
treeb974b9b392b4cd7263596358dd634b11d7e8f350 /arch/x86/mm/ioremap_32.c
parentx86: use __PAGE_KERNEL_EXEC in ioremap_64.c (diff)
downloadkernel-qcow2-linux-4138cc3418f5eaa7524ff8e927102863f1ba0ea5.tar.gz
kernel-qcow2-linux-4138cc3418f5eaa7524ff8e927102863f1ba0ea5.tar.xz
kernel-qcow2-linux-4138cc3418f5eaa7524ff8e927102863f1ba0ea5.zip
x86: set strong uncacheable where UC is really desired
Also use _PAGE_PWT for all the mappings which need uncache mapping. Instead of existing PAT2 which is UC- (and can be overwritten by MTRRs), we now use PAT3 which is strong uncacheable. This makes it consistent with pgprot_noncached() Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/ioremap_32.c')
-rw-r--r--arch/x86/mm/ioremap_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/ioremap_32.c b/arch/x86/mm/ioremap_32.c
index 0b278315d737..ef0f6a452ee1 100644
--- a/arch/x86/mm/ioremap_32.c
+++ b/arch/x86/mm/ioremap_32.c
@@ -119,7 +119,7 @@ EXPORT_SYMBOL(__ioremap);
void __iomem *ioremap_nocache (unsigned long phys_addr, unsigned long size)
{
unsigned long last_addr;
- void __iomem *p = __ioremap(phys_addr, size, _PAGE_PCD);
+ void __iomem *p = __ioremap(phys_addr, size, _PAGE_PCD | _PAGE_PWT);
if (!p)
return p;