This source file includes following definitions.
- pmd_populate_kernel
- pmd_populate
1
2 #ifndef _ASM_POWERPC_PGALLOC_32_H
3 #define _ASM_POWERPC_PGALLOC_32_H
4
5 #include <linux/threads.h>
6 #include <linux/slab.h>
7
8
9
10
11
12
13 #define pmd_free(mm, x) do { } while (0)
14 #define __pmd_free_tlb(tlb,x,a) do { } while (0)
15
16
17 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp,
18 pte_t *pte)
19 {
20 if (IS_ENABLED(CONFIG_BOOKE))
21 *pmdp = __pmd((unsigned long)pte | _PMD_PRESENT);
22 else
23 *pmdp = __pmd(__pa(pte) | _PMD_PRESENT);
24 }
25
26 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmdp,
27 pgtable_t pte_page)
28 {
29 if (IS_ENABLED(CONFIG_BOOKE))
30 *pmdp = __pmd((unsigned long)pte_page | _PMD_PRESENT);
31 else
32 *pmdp = __pmd(__pa(pte_page) | _PMD_USER | _PMD_PRESENT);
33 }
34
35 #endif