powerpc/e500: SPE register saving: take arbitrary struct offset
authorScott Wood <scottwood@freescale.com>
Tue, 14 Jun 2011 23:34:27 +0000 (18:34 -0500)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:31 +0000 (13:16 +0300)
commitc51584d52e3878aa9b2bb98cdfb87173e7acf560
treec52d3133b30fcc6b68555b8b55232f89fb4b7c84
parent685659ee70db0bac47ffd619c726cf600e504fd7
powerpc/e500: SPE register saving: take arbitrary struct offset

Previously, these macros hardcoded THREAD_EVR0 as the base of the save
area, relative to the base register passed.  This base offset is now
passed as a separate macro parameter, allowing reuse with other SPE
save areas, such as used by KVM.

Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/kernel/head_fsl_booke.S