diff options
Diffstat (limited to 'arch/powerpc/include/asm/pte-hash64-4k.h')
-rw-r--r-- | arch/powerpc/include/asm/pte-hash64-4k.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pte-hash64-4k.h b/arch/powerpc/include/asm/pte-hash64-4k.h new file mode 100644 index 00000000000..29fdc158fe3 --- /dev/null +++ b/arch/powerpc/include/asm/pte-hash64-4k.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* To be include by pgtable-hash64.h only */ | ||
2 | |||
3 | /* PTE bits */ | ||
4 | #define _PAGE_HASHPTE 0x0400 /* software: pte has an associated HPTE */ | ||
5 | #define _PAGE_SECONDARY 0x8000 /* software: HPTE is in secondary group */ | ||
6 | #define _PAGE_GROUP_IX 0x7000 /* software: HPTE index within group */ | ||
7 | #define _PAGE_F_SECOND _PAGE_SECONDARY | ||
8 | #define _PAGE_F_GIX _PAGE_GROUP_IX | ||
9 | #define _PAGE_SPECIAL 0x10000 /* software: special page */ | ||
10 | |||
11 | /* There is no 4K PFN hack on 4K pages */ | ||
12 | #define _PAGE_4K_PFN 0 | ||
13 | |||
14 | /* PTE flags to conserve for HPTE identification */ | ||
15 | #define _PAGE_HPTEFLAGS (_PAGE_BUSY | _PAGE_HASHPTE | \ | ||
16 | _PAGE_SECONDARY | _PAGE_GROUP_IX) | ||
17 | |||
18 | /* shift to put page number into pte */ | ||
19 | #define PTE_RPN_SHIFT (17) | ||
20 | |||