summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/uaccess.h
diff options
context:
space:
mode:
authorOliver O'Halloran2017-10-19 09:13:55 +0200
committerMichael Ellerman2017-11-12 22:00:31 +0100
commit6c44741d75a27985a0496cd58b123a58c7177108 (patch)
treecabc19300cc31e282e8663bc071b37ab24187c00 /arch/powerpc/include/asm/uaccess.h
parentpowerpc/lib: Implement PMEM API (diff)
downloadkernel-qcow2-linux-6c44741d75a27985a0496cd58b123a58c7177108.tar.gz
kernel-qcow2-linux-6c44741d75a27985a0496cd58b123a58c7177108.tar.xz
kernel-qcow2-linux-6c44741d75a27985a0496cd58b123a58c7177108.zip
powerpc/lib: Implement UACCESS_FLUSHCACHE API
Implement the architecture specific portitions of the UACCESS_FLUSHCACHE API. This provides functions for the copy_user_flushcache iterator that ensure that when the copy is finished the destination buffer contains a copy of the original and that the destination buffer is clean in the processor caches. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/uaccess.h')
-rw-r--r--arch/powerpc/include/asm/uaccess.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h
index e34f15e727d9..19a3f75ed610 100644
--- a/arch/powerpc/include/asm/uaccess.h
+++ b/arch/powerpc/include/asm/uaccess.h
@@ -356,4 +356,9 @@ static inline unsigned long clear_user(void __user *addr, unsigned long size)
extern long strncpy_from_user(char *dst, const char __user *src, long count);
extern __must_check long strnlen_user(const char __user *str, long n);
+extern long __copy_from_user_flushcache(void *dst, const void __user *src,
+ unsigned size);
+extern void memcpy_page_flushcache(char *to, struct page *page, size_t offset,
+ size_t len);
+
#endif /* _ARCH_POWERPC_UACCESS_H */