diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2006-02-28 12:25:22 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2006-02-28 12:25:22 -0500 |
commit | 9585da3729e7e27bf22818625c10ac6c64ebb609 (patch) | |
tree | 8c8d46f7f2cc933fdf75a6a75cf593a63f7b8717 /include/asm-frv/cacheflush.h | |
parent | 8080d5497146d5d27d9e8e78229d1adc7fe280cf (diff) | |
parent | 6749c5507388f3fc3719f57a54b540ee83f6661a (diff) |
Merge branch 'master' of git+ssh://galak@master.kernel.org/pub/scm/linux/kernel/git/galak/powerpc
Diffstat (limited to 'include/asm-frv/cacheflush.h')
-rw-r--r-- | include/asm-frv/cacheflush.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-frv/cacheflush.h b/include/asm-frv/cacheflush.h index 3007deccb490..eaa5826bc1c8 100644 --- a/include/asm-frv/cacheflush.h +++ b/include/asm-frv/cacheflush.h | |||
@@ -87,5 +87,17 @@ static inline void flush_icache_page(struct vm_area_struct *vma, struct page *pa | |||
87 | flush_icache_user_range(vma, page, page_to_phys(page), PAGE_SIZE); | 87 | flush_icache_user_range(vma, page, page_to_phys(page), PAGE_SIZE); |
88 | } | 88 | } |
89 | 89 | ||
90 | /* | ||
91 | * permit ptrace to access another process's address space through the icache | ||
92 | * and the dcache | ||
93 | */ | ||
94 | #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ | ||
95 | do { \ | ||
96 | memcpy((dst), (src), (len)); \ | ||
97 | flush_icache_user_range((vma), (page), (vaddr), (len)); \ | ||
98 | } while(0) | ||
99 | |||
100 | #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ | ||
101 | memcpy((dst), (src), (len)) | ||
90 | 102 | ||
91 | #endif /* _ASM_CACHEFLUSH_H */ | 103 | #endif /* _ASM_CACHEFLUSH_H */ |