summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-02-01 14:53:04 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-02 01:17:06 +0100
commit04add672cf98a788e9e0d753b2ccfa4a3a0caf56 (patch)
treec94f6d7f59d3e4e8f7a3659014eeb563bf8651f8 /include
parent[PATCH] radio modems sitting on serial port are not for s390 (diff)
downloadlinux-04add672cf98a788e9e0d753b2ccfa4a3a0caf56.tar.xz
linux-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 '')
-rw-r--r--include/asm-um/pgtable.h9
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