diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-28 15:07:57 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-28 15:07:57 -0500 |
| commit | be9c5ae4eeec2e85527e95647348b8ea4eb25128 (patch) | |
| tree | 59383b15bc0891b8a44500a0ac172a8850f1068d /include/asm-generic/pgtable.h | |
| parent | bb26c6c29b7cc9f39e491b074b09f3c284738d36 (diff) | |
| parent | 79a66b96c339626a3e4b226fefc0e45244cfe6ff (diff) | |
Merge branch 'x86-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (246 commits)
x86: traps.c replace #if CONFIG_X86_32 with #ifdef CONFIG_X86_32
x86: PAT: fix address types in track_pfn_vma_new()
x86: prioritize the FPU traps for the error code
x86: PAT: pfnmap documentation update changes
x86: PAT: move track untrack pfnmap stubs to asm-generic
x86: PAT: remove follow_pfnmap_pte in favor of follow_phys
x86: PAT: modify follow_phys to return phys_addr prot and return value
x86: PAT: clarify is_linear_pfn_mapping() interface
x86: ia32_signal: remove unnecessary declaration
x86: common.c boot_cpu_stack and boot_exception_stacks should be static
x86: fix intel x86_64 llc_shared_map/cpu_llc_id anomolies
x86: fix warning in arch/x86/kernel/microcode_amd.c
x86: ia32.h: remove unused struct sigfram32 and rt_sigframe32
x86: asm-offset_64: use rt_sigframe_ia32
x86: sigframe.h: include headers for dependency
x86: traps.c declare functions before they get used
x86: PAT: update documentation to cover pgprot and remap_pfn related changes - v3
x86: PAT: add pgprot_writecombine() interface for drivers - v3
x86: PAT: change pgprot_noncached to uc_minus instead of strong uc - v3
x86: PAT: implement track/untrack of pfnmap regions for x86 - v3
...
Diffstat (limited to 'include/asm-generic/pgtable.h')
| -rw-r--r-- | include/asm-generic/pgtable.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index ef87f889ef62..72ebe91005a8 100644 --- a/include/asm-generic/pgtable.h +++ b/include/asm-generic/pgtable.h | |||
| @@ -129,6 +129,10 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addres | |||
| 129 | #define move_pte(pte, prot, old_addr, new_addr) (pte) | 129 | #define move_pte(pte, prot, old_addr, new_addr) (pte) |
| 130 | #endif | 130 | #endif |
| 131 | 131 | ||
| 132 | #ifndef pgprot_writecombine | ||
| 133 | #define pgprot_writecombine pgprot_noncached | ||
| 134 | #endif | ||
| 135 | |||
| 132 | /* | 136 | /* |
| 133 | * When walking page tables, get the address of the next boundary, | 137 | * When walking page tables, get the address of the next boundary, |
| 134 | * or the end address of the range if that comes earlier. Although no | 138 | * or the end address of the range if that comes earlier. Although no |
| @@ -289,6 +293,52 @@ static inline void ptep_modify_prot_commit(struct mm_struct *mm, | |||
| 289 | #define arch_flush_lazy_cpu_mode() do {} while (0) | 293 | #define arch_flush_lazy_cpu_mode() do {} while (0) |
| 290 | #endif | 294 | #endif |
| 291 | 295 | ||
| 296 | #ifndef __HAVE_PFNMAP_TRACKING | ||
| 297 | /* | ||
| 298 | * Interface that can be used by architecture code to keep track of | ||
| 299 | * memory type of pfn mappings (remap_pfn_range, vm_insert_pfn) | ||
| 300 | * | ||
| 301 | * track_pfn_vma_new is called when a _new_ pfn mapping is being established | ||
| 302 | * for physical range indicated by pfn and size. | ||
| 303 | */ | ||
| 304 | static inline int track_pfn_vma_new(struct vm_area_struct *vma, pgprot_t prot, | ||
| 305 | unsigned long pfn, unsigned long size) | ||
| 306 | { | ||
| 307 | return 0; | ||
| 308 | } | ||
| 309 | |||
| 310 | /* | ||
| 311 | * Interface that can be used by architecture code to keep track of | ||
| 312 | * memory type of pfn mappings (remap_pfn_range, vm_insert_pfn) | ||
| 313 | * | ||
| 314 | * track_pfn_vma_copy is called when vma that is covering the pfnmap gets | ||
| 315 | * copied through copy_page_range(). | ||
| 316 | */ | ||
| 317 | static inline int track_pfn_vma_copy(struct vm_area_struct *vma) | ||
| 318 | { | ||
| 319 | return 0; | ||
| 320 | } | ||
| 321 | |||
| 322 | /* | ||
| 323 | * Interface that can be used by architecture code to keep track of | ||
| 324 | * memory type of pfn mappings (remap_pfn_range, vm_insert_pfn) | ||
| 325 | * | ||
| 326 | * untrack_pfn_vma is called while unmapping a pfnmap for a region. | ||
| 327 | * untrack can be called for a specific region indicated by pfn and size or | ||
| 328 | * can be for the entire vma (in which case size can be zero). | ||
| 329 | */ | ||
| 330 | static inline void untrack_pfn_vma(struct vm_area_struct *vma, | ||
| 331 | unsigned long pfn, unsigned long size) | ||
| 332 | { | ||
| 333 | } | ||
| 334 | #else | ||
| 335 | extern int track_pfn_vma_new(struct vm_area_struct *vma, pgprot_t prot, | ||
| 336 | unsigned long pfn, unsigned long size); | ||
| 337 | extern int track_pfn_vma_copy(struct vm_area_struct *vma); | ||
| 338 | extern void untrack_pfn_vma(struct vm_area_struct *vma, unsigned long pfn, | ||
| 339 | unsigned long size); | ||
| 340 | #endif | ||
| 341 | |||
| 292 | #endif /* !__ASSEMBLY__ */ | 342 | #endif /* !__ASSEMBLY__ */ |
| 293 | 343 | ||
| 294 | #endif /* _ASM_GENERIC_PGTABLE_H */ | 344 | #endif /* _ASM_GENERIC_PGTABLE_H */ |
