summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/pte-40x.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-09-22 18:12:26 (GMT)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-09-24 05:31:49 (GMT)
commitf32af63ed1327451cb91e3816fa043b6c2c52db1 (patch)
treeccce3ffd1995ea3404c7984c34bc93fafb3740d6 /arch/powerpc/include/asm/pte-40x.h
parent142597dbbd8a1d516af3dacfa00037f21612e865 (diff)
downloadlinux-fsl-qoriq-f32af63ed1327451cb91e3816fa043b6c2c52db1.tar.xz
powerpc/mm: Fix 40x and 8xx vs. _PAGE_SPECIAL
The test to check whether we have _PAGE_SPECIAL defined is broken, since we always define it, just not always to a meaninful value :-) That broke 8xx and 40x under some circumstances. This fixes it by adding _PAGE_SPECIAL for both of these since they had a free PTE bit, and removing the condition around advertising it. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/pte-40x.h')
-rw-r--r--arch/powerpc/include/asm/pte-40x.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pte-40x.h b/arch/powerpc/include/asm/pte-40x.h
index 6c3e1f4..ec0b0b0 100644
--- a/arch/powerpc/include/asm/pte-40x.h
+++ b/arch/powerpc/include/asm/pte-40x.h
@@ -43,6 +43,7 @@
#define _PAGE_NO_CACHE 0x004 /* I: caching is inhibited */
#define _PAGE_WRITETHRU 0x008 /* W: caching is write-through */
#define _PAGE_USER 0x010 /* matches one of the zone permission bits */
+#define _PAGE_SPECIAL 0x020 /* software: Special page */
#define _PAGE_RW 0x040 /* software: Writes permitted */
#define _PAGE_DIRTY 0x080 /* software: dirty page */
#define _PAGE_HWWRITE 0x100 /* hardware: Dirty & RW, set in exception */