]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix corruption in hcall9
authorAnton Blanchard <anton@samba.org>
Mon, 8 Jan 2007 15:37:16 +0000 (02:37 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 9 Jan 2007 06:03:03 +0000 (17:03 +1100)
commit06b29951a8f85db934153081a7aa3e22187b29bd
treef3eb5fab9432b77e3a1d248daa142c8f4573becd
parentde5028890ea45d07031fdb2205a1e5b7553a382b
[POWERPC] Fix corruption in hcall9

It looks to me like we are corrupting r12 in the hcall9 function.
Although we have r0 free we cant use offsets against it, so save
away r12 in there instead.  r12 holds the ninth return value from
the hypervisor call, so without this fix, the caller will see the
wrong value for the ninth element in the array that gets the return
values.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/hvCall.S