diff options
author | Tejun Heo <tj@kernel.org> | 2009-02-24 03:57:21 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-02-24 03:57:21 +0100 |
commit | 458a3e644c3327be529393982e24277eda8f1ac7 (patch) | |
tree | f39bab1d54eeb222565c8d9086f2e4f645d97f58 /arch/x86/include/asm/pgtable.h | |
parent | vmalloc: add @align to vm_area_register_early() (diff) | |
download | linux-458a3e644c3327be529393982e24277eda8f1ac7.tar.xz linux-458a3e644c3327be529393982e24277eda8f1ac7.zip |
x86: update populate_extra_pte() and add populate_extra_pmd()
Impact: minor change to populate_extra_pte() and addition of pmd flavor
Update populate_extra_pte() to return pointer to the pte_t for the
specified address and add populate_extra_pmd() which only populates
till the pmd and returns pointer to the pmd entry for the address.
For 64bit, pud/pmd/pte fill functions are separated out from
set_pte_vaddr[_pud]() and used for set_pte_vaddr[_pud]() and
populate_extra_{pte|pmd}().
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index dd91c2515c64..46312eb0d682 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -402,7 +402,8 @@ int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn, /* Install a pte for a particular vaddr in kernel space. */ void set_pte_vaddr(unsigned long vaddr, pte_t pte); -void populate_extra_pte(unsigned long vaddr); +pmd_t *populate_extra_pmd(unsigned long vaddr); +pte_t *populate_extra_pte(unsigned long vaddr); #ifdef CONFIG_X86_32 extern void native_pagetable_setup_start(pgd_t *base); |