diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-06-17 11:41:59 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-20 15:09:54 +0200 |
commit | d494a96125c99f1e37b1f831b29b42c9b712ee05 (patch) | |
tree | 2a43489c1e3ba0fce51326e7548512252a052eef /arch/x86/mm/pgtable_32.c | |
parent | 7c7e6e07e2a7c0d2d96389f4f0540e44a80ecdaa (diff) | |
download | kernel_goldelico_gta04-d494a96125c99f1e37b1f831b29b42c9b712ee05.zip kernel_goldelico_gta04-d494a96125c99f1e37b1f831b29b42c9b712ee05.tar.gz kernel_goldelico_gta04-d494a96125c99f1e37b1f831b29b42c9b712ee05.tar.bz2 |
x86: implement set_pte_vaddr
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/pgtable_32.c')
-rw-r--r-- | arch/x86/mm/pgtable_32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/pgtable_32.c b/arch/x86/mm/pgtable_32.c index 3f97c3c..0662f34 100644 --- a/arch/x86/mm/pgtable_32.c +++ b/arch/x86/mm/pgtable_32.c @@ -71,7 +71,7 @@ void show_mem(void) * Associate a virtual page frame with a given physical page frame * and protection flags for that frame. */ -static void set_pte_pfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags) +void set_pte_vaddr(unsigned long vaddr, pte_t pteval) { pgd_t *pgd; pud_t *pud; @@ -94,8 +94,8 @@ static void set_pte_pfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags) return; } pte = pte_offset_kernel(pmd, vaddr); - if (pgprot_val(flags)) - set_pte_present(&init_mm, vaddr, pte, pfn_pte(pfn, flags)); + if (pte_val(pteval)) + set_pte_present(&init_mm, vaddr, pte, pteval); else pte_clear(&init_mm, vaddr, pte); |