diff options
Diffstat (limited to 'include/asm-x86/pgtable_32.h')
| -rw-r--r-- | include/asm-x86/pgtable_32.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h index c4a643674458..168b6447cf18 100644 --- a/include/asm-x86/pgtable_32.h +++ b/include/asm-x86/pgtable_32.h | |||
| @@ -48,9 +48,6 @@ void paging_init(void); | |||
| 48 | #define PGDIR_SIZE (1UL << PGDIR_SHIFT) | 48 | #define PGDIR_SIZE (1UL << PGDIR_SHIFT) |
| 49 | #define PGDIR_MASK (~(PGDIR_SIZE - 1)) | 49 | #define PGDIR_MASK (~(PGDIR_SIZE - 1)) |
| 50 | 50 | ||
| 51 | #define USER_PGD_PTRS (PAGE_OFFSET >> PGDIR_SHIFT) | ||
| 52 | #define KERNEL_PGD_PTRS (PTRS_PER_PGD-USER_PGD_PTRS) | ||
| 53 | |||
| 54 | /* Just any arbitrary offset to the start of the vmalloc VM area: the | 51 | /* Just any arbitrary offset to the start of the vmalloc VM area: the |
| 55 | * current 8MB value just means that there will be a 8MB "hole" after the | 52 | * current 8MB value just means that there will be a 8MB "hole" after the |
| 56 | * physical memory until the kernel virtual memory starts. That means that | 53 | * physical memory until the kernel virtual memory starts. That means that |
| @@ -109,21 +106,6 @@ extern int pmd_bad(pmd_t pmd); | |||
| 109 | #endif | 106 | #endif |
| 110 | 107 | ||
| 111 | /* | 108 | /* |
| 112 | * clone_pgd_range(pgd_t *dst, pgd_t *src, int count); | ||
| 113 | * | ||
| 114 | * dst - pointer to pgd range anwhere on a pgd page | ||
| 115 | * src - "" | ||
| 116 | * count - the number of pgds to copy. | ||
| 117 | * | ||
| 118 | * dst and src can be on the same page, but the range must not overlap, | ||
| 119 | * and must not cross a page boundary. | ||
| 120 | */ | ||
| 121 | static inline void clone_pgd_range(pgd_t *dst, pgd_t *src, int count) | ||
| 122 | { | ||
| 123 | memcpy(dst, src, count * sizeof(pgd_t)); | ||
| 124 | } | ||
| 125 | |||
| 126 | /* | ||
| 127 | * Macro to mark a page protection value as "uncacheable". | 109 | * Macro to mark a page protection value as "uncacheable". |
| 128 | * On processors which do not support it, this is a no-op. | 110 | * On processors which do not support it, this is a no-op. |
| 129 | */ | 111 | */ |
