diff options
author | David Howells <dhowells@redhat.com> | 2006-02-14 21:53:18 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-15 00:09:35 (GMT) |
commit | 68f624fc8b9fa50de9cc0ebd612ef7b7b9fa32d0 (patch) | |
tree | 2e25482dd6a482ccf1378d2b01b863f99603bab5 /include/asm-frv/cacheflush.h | |
parent | 06027bdd278a32a84b273e41db68a5db8ffd2bb6 (diff) | |
download | linux-fsl-qoriq-68f624fc8b9fa50de9cc0ebd612ef7b7b9fa32d0.tar.xz |
[PATCH] FRV: Miscellaneous fixes
Make various alterations and fixes to the FRV arch:
(1) Resyncs the FRV system call collection with the i386 arch.
(2) Discards __iounmap() as it's not used.
(3) Fixes the use of the SWAP/SWAPI instruction to get the arguments the right
way around in atomic.h, and also to get the asm constraints correct.
(4) Moves copy_to/from_user_page() to asm/cacheflush.h to be consistent with
other archs.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 3007dec..eaa5826 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 flush_icache_user_range(vma, page, page_to_phys(page), PAGE_SIZE); } +/* + * permit ptrace to access another process's address space through the icache + * and the dcache + */ +#define copy_to_user_page(vma, page, vaddr, dst, src, len) \ +do { \ + memcpy((dst), (src), (len)); \ + flush_icache_user_range((vma), (page), (vaddr), (len)); \ +} while(0) + +#define copy_from_user_page(vma, page, vaddr, dst, src, len) \ + memcpy((dst), (src), (len)) #endif /* _ASM_CACHEFLUSH_H */ |