diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-02-01 13:53:04 +0000 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-01 16:17:06 -0800 |
commit | 04add672cf98a788e9e0d753b2ccfa4a3a0caf56 (patch) | |
tree | c94f6d7f59d3e4e8f7a3659014eeb563bf8651f8 /include/asm-um/pgtable.h | |
parent | 9d6ed92196f7acdd1052b0828bb1e2f1a7241815 (diff) | |
download | lwn-04add672cf98a788e9e0d753b2ccfa4a3a0caf56.tar.gz lwn-04add672cf98a788e9e0d753b2ccfa4a3a0caf56.zip |
[PATCH] uml-i386: fix build breakage with CONFIG_HIGHMEM
missing helper used by arch/i386/mm/highmem.c, which is pulled
into build on that configuration.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-um/pgtable.h')
-rw-r--r-- | include/asm-um/pgtable.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h index 188f72621776..e57ff136ee51 100644 --- a/include/asm-um/pgtable.h +++ b/include/asm-um/pgtable.h @@ -408,6 +408,15 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) #include <asm-generic/pgtable-nopud.h> +#ifdef CONFIG_HIGHMEM +/* Clear a kernel PTE and flush it from the TLB */ +#define kpte_clear_flush(ptep, vaddr) \ +do { \ + pte_clear(&init_mm, vaddr, ptep); \ + __flush_tlb_one(vaddr); \ +} while (0) +#endif + #endif #endif |