diff options
Diffstat (limited to 'include/asm-generic')
| -rw-r--r-- | include/asm-generic/pgtable.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index 7d7bcf990e..aa3f1202a1 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h | |||
| @@ -3,25 +3,6 @@ | |||
| 3 | 3 | ||
| 4 | #ifndef __ASSEMBLY__ | 4 | #ifndef __ASSEMBLY__ |
| 5 | 5 | ||
| 6 | #ifndef __HAVE_ARCH_PTEP_ESTABLISH | ||
| 7 | /* | ||
| 8 | * Establish a new mapping: | ||
| 9 | * - flush the old one | ||
| 10 | * - update the page tables | ||
| 11 | * - inform the TLB about the new one | ||
| 12 | * | ||
| 13 | * We hold the mm semaphore for reading, and the pte lock. | ||
| 14 | * | ||
| 15 | * Note: the old pte is known to not be writable, so we don't need to | ||
| 16 | * worry about dirty bits etc getting lost. | ||
| 17 | */ | ||
| 18 | #define ptep_establish(__vma, __address, __ptep, __entry) \ | ||
| 19 | do { \ | ||
| 20 | set_pte_at((__vma)->vm_mm, (__address), __ptep, __entry); \ | ||
| 21 | flush_tlb_page(__vma, __address); \ | ||
| 22 | } while (0) | ||
| 23 | #endif | ||
| 24 | |||
| 25 | #ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS | 6 | #ifndef __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS |
| 26 | /* | 7 | /* |
| 27 | * Largely same as above, but only sets the access flags (dirty, | 8 | * Largely same as above, but only sets the access flags (dirty, |
