projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d6ed92
)
[PATCH] uml-i386: fix build breakage with CONFIG_HIGHMEM
author
Al Viro
<
[email protected]
>
Thu, 1 Feb 2007 13:53:04 +0000
(13:53 +0000)
committer
Linus Torvalds
<
[email protected]
>
Fri, 2 Feb 2007 00:17:06 +0000
(16:17 -0800)
missing helper used by arch/i386/mm/highmem.c, which is pulled
into build on that configuration.
Signed-off-by: Al Viro <
[email protected]
>
Acked-by: Jeff Dike <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/asm-um/pgtable.h
patch
|
blob
|
history
diff --git
a/include/asm-um/pgtable.h
b/include/asm-um/pgtable.h
index 188f726217766f8e45bc7dce5a130e509d9b2f68..e57ff136ee510e884ea4474a7e2f21bde36b2390 100644
(file)
--- 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