aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/copro.h
diff options
context:
space:
mode:
authorIan Munsie <imunsie@au1.ibm.com>2014-10-08 19:54:50 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2014-10-08 20:14:54 +1100
commite83d01697583d8610d1d62279758c2a881e3396f (patch)
tree167a30304a5b48debcb66955efdf5f68808c1998 /arch/powerpc/include/asm/copro.h
parentpowerpc/pseries: Use new defines when calling H_SET_MODE (diff)
downloadlinux-dev-e83d01697583d8610d1d62279758c2a881e3396f.tar.xz
linux-dev-e83d01697583d8610d1d62279758c2a881e3396f.zip
powerpc/cell: Move spu_handle_mm_fault() out of cell platform
Currently spu_handle_mm_fault() is in the cell platform. This code is generically useful for other non-cell co-processors on powerpc. This patch moves this function out of the cell platform into arch/powerpc/mm so that others may use it. Signed-off-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/copro.h')
-rw-r--r--arch/powerpc/include/asm/copro.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/copro.h b/arch/powerpc/include/asm/copro.h
new file mode 100644
index 000000000000..51cae85a50b4
--- /dev/null
+++ b/arch/powerpc/include/asm/copro.h
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2014 IBM Corp.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#ifndef _ASM_POWERPC_COPRO_H
+#define _ASM_POWERPC_COPRO_H
+
+int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea,
+ unsigned long dsisr, unsigned *flt);
+
+#endif /* _ASM_POWERPC_COPRO_H */