diff options
author | Siddha, Suresh B <suresh.b.siddha@intel.com> | 2008-01-30 07:33:43 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:43 -0500 |
commit | 4138cc3418f5eaa7524ff8e927102863f1ba0ea5 (patch) | |
tree | b974b9b392b4cd7263596358dd634b11d7e8f350 /arch | |
parent | fbd3bfd87f91e6a454f3f61f67ee745f0cb59aa4 (diff) |
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')
-rw-r--r-- | arch/x86/mm/ioremap_32.c | 2 | ||||
-rw-r--r-- | arch/x86/mm/ioremap_64.c | 2 |
2 files changed, 2 insertions, 2 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); | |||
119 | void __iomem *ioremap_nocache (unsigned long phys_addr, unsigned long size) | 119 | void __iomem *ioremap_nocache (unsigned long phys_addr, unsigned long size) |
120 | { | 120 | { |
121 | unsigned long last_addr; | 121 | unsigned long last_addr; |
122 | void __iomem *p = __ioremap(phys_addr, size, _PAGE_PCD); | 122 | void __iomem *p = __ioremap(phys_addr, size, _PAGE_PCD | _PAGE_PWT); |
123 | if (!p) | 123 | if (!p) |
124 | return p; | 124 | return p; |
125 | 125 | ||
diff --git a/arch/x86/mm/ioremap_64.c b/arch/x86/mm/ioremap_64.c index d6cf14976827..2815ab60009b 100644 --- a/arch/x86/mm/ioremap_64.c +++ b/arch/x86/mm/ioremap_64.c | |||
@@ -138,7 +138,7 @@ EXPORT_SYMBOL(__ioremap); | |||
138 | 138 | ||
139 | void __iomem *ioremap_nocache (unsigned long phys_addr, unsigned long size) | 139 | void __iomem *ioremap_nocache (unsigned long phys_addr, unsigned long size) |
140 | { | 140 | { |
141 | return __ioremap(phys_addr, size, _PAGE_PCD); | 141 | return __ioremap(phys_addr, size, _PAGE_PCD | _PAGE_PWT); |
142 | } | 142 | } |
143 | EXPORT_SYMBOL(ioremap_nocache); | 143 | EXPORT_SYMBOL(ioremap_nocache); |
144 | 144 | ||