[POWERPC] clean up pseries hcall interfaces
authorAnton Blanchard <anton@samba.org>
Tue, 18 Jul 2006 22:01:28 +0000 (08:01 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 1 Aug 2006 06:19:15 +0000 (16:19 +1000)
commitb9377ffc3a03cde558d76349a262a1adbb6d3112
treec61fcdb732d06c64b9c5634953e46cefdf6af846
parent57cad8084e0837e0f2c97da789ec9b3f36809be9
[POWERPC] clean up pseries hcall interfaces

Our pseries hcall interfaces are out of control:

plpar_hcall_norets
plpar_hcall
plpar_hcall_8arg_2ret
plpar_hcall_4out
plpar_hcall_7arg_7ret
plpar_hcall_9arg_9ret

Create 3 interfaces to cover all cases:

plpar_hcall_norets: 7 arguments no returns
plpar_hcall: 6 arguments 4 returns
plpar_hcall9: 9 arguments 9 returns

There are only 2 cases in the kernel that need plpar_hcall9, hopefully
we can keep it that way.

Pass in a buffer to stash return parameters so we avoid the &dummy1,
&dummy2 madness.

Signed-off-by: Anton Blanchard <anton@samba.org>
--
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/lparcfg.c
arch/powerpc/kernel/rtas.c
arch/powerpc/platforms/pseries/hvCall.S
arch/powerpc/platforms/pseries/hvconsole.c
arch/powerpc/platforms/pseries/lpar.c
arch/powerpc/platforms/pseries/plpar_wrappers.h
arch/powerpc/platforms/pseries/xics.c
drivers/net/ibmveth.c
drivers/net/ibmveth.h
include/asm-powerpc/hvcall.h