From: Ian Munsie Date: Wed, 8 Oct 2014 08:54:51 +0000 (+1100) Subject: powerpc/cell: Move data segment faulting code out of cell platform X-Git-Tag: fixes-against-v3.18-rc2~117^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d16a6e0e51990cbe13f8d8f43bd5329bbab30a;p=pandora-kernel.git powerpc/cell: Move data segment faulting code out of cell platform __spu_trap_data_seg() currently contains code to determine the VSID and ESID required for a particular EA and mm struct. This code is generically useful for other co-processors. This moves the code of the cell platform so it can be used by other powerpc code. It also adds 1TB segment handling which Cell didn't support. The new function is called copro_calculate_slb(). This also moves the internal struct spu_slb to a generic struct copro_slb which is now used in the Cell and copro code. We use this new struct instead of passing around esid and vsid parameters. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed