From: Paul Mackerras Date: Tue, 5 Apr 2011 03:59:58 +0000 (+1000) Subject: powerpc: Always use SPRN_SPRG_HSCRATCH0 when running in HV mode X-Git-Tag: v3.0-rc1~385^2~128 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=673b189a2e3353061fa8c49515d1014dab6ad9b9;p=pandora-kernel.git powerpc: Always use SPRN_SPRG_HSCRATCH0 when running in HV mode This uses feature sections to arrange that we always use HSPRG1 as the scratch register in the interrupt entry code rather than SPRG2 when we're running in hypervisor mode on POWER7. This will ensure that we don't trash the guest's SPRG2 when we are running KVM guests. To simplify the code, we define GET_SCRATCH0() and SET_SCRATCH0() macros like the GET_PACA/SET_PACA macros. Signed-off-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed