diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-generic/4level-fixup.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-generic/4level-fixup.h')
-rw-r--r-- | include/asm-generic/4level-fixup.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/asm-generic/4level-fixup.h b/include/asm-generic/4level-fixup.h new file mode 100644 index 000000000000..c20ec257ecc0 --- /dev/null +++ b/include/asm-generic/4level-fixup.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #ifndef _4LEVEL_FIXUP_H | ||
2 | #define _4LEVEL_FIXUP_H | ||
3 | |||
4 | #define __ARCH_HAS_4LEVEL_HACK | ||
5 | #define __PAGETABLE_PUD_FOLDED | ||
6 | |||
7 | #define PUD_SIZE PGDIR_SIZE | ||
8 | #define PUD_MASK PGDIR_MASK | ||
9 | #define PTRS_PER_PUD 1 | ||
10 | |||
11 | #define pud_t pgd_t | ||
12 | |||
13 | #define pmd_alloc(mm, pud, address) \ | ||
14 | ({ pmd_t *ret; \ | ||
15 | if (pgd_none(*pud)) \ | ||
16 | ret = __pmd_alloc(mm, pud, address); \ | ||
17 | else \ | ||
18 | ret = pmd_offset(pud, address); \ | ||
19 | ret; \ | ||
20 | }) | ||
21 | |||
22 | #define pud_alloc(mm, pgd, address) (pgd) | ||
23 | #define pud_offset(pgd, start) (pgd) | ||
24 | #define pud_none(pud) 0 | ||
25 | #define pud_bad(pud) 0 | ||
26 | #define pud_present(pud) 1 | ||
27 | #define pud_ERROR(pud) do { } while (0) | ||
28 | #define pud_clear(pud) pgd_clear(pud) | ||
29 | |||
30 | #undef pud_free_tlb | ||
31 | #define pud_free_tlb(tlb, x) do { } while (0) | ||
32 | #define pud_free(x) do { } while (0) | ||
33 | #define __pud_free_tlb(tlb, x) do { } while (0) | ||
34 | |||
35 | #undef pud_addr_end | ||
36 | #define pud_addr_end(addr, end) (end) | ||
37 | |||
38 | #endif | ||