diff options
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/pgtable.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-i386/pgtable.h b/include/asm-i386/pgtable.h index 94c87ff4b5ac..ee9696d2f67f 100644 --- a/include/asm-i386/pgtable.h +++ b/include/asm-i386/pgtable.h | |||
@@ -441,6 +441,13 @@ extern pte_t *lookup_address(unsigned long address); | |||
441 | #define pte_unmap_nested(pte) do { } while (0) | 441 | #define pte_unmap_nested(pte) do { } while (0) |
442 | #endif | 442 | #endif |
443 | 443 | ||
444 | /* Clear a kernel PTE and flush it from the TLB */ | ||
445 | #define kpte_clear_flush(ptep, vaddr) \ | ||
446 | do { \ | ||
447 | pte_clear(&init_mm, vaddr, ptep); \ | ||
448 | __flush_tlb_one(vaddr); \ | ||
449 | } while (0) | ||
450 | |||
444 | /* | 451 | /* |
445 | * The i386 doesn't have any external MMU info: the kernel page | 452 | * The i386 doesn't have any external MMU info: the kernel page |
446 | * tables contain all the necessary information. | 453 | * tables contain all the necessary information. |