2 * This file contains the generic code to perform a call to the
3 * pSeries LPAR hypervisor.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version
8 * 2 of the License, or (at your option) any later version.
10 #include <asm/hvcall.h>
11 #include <asm/processor.h>
12 #include <asm/ppc_asm.h>
14 #define STK_PARM(i) (48 + ((i)-3)*8)
18 _GLOBAL(plpar_hcall_norets)
24 HVSC /* invoke the hypervisor */
28 blr /* return r3 = status */
36 std r4,STK_PARM(r4)(r1) /* Save ret buffer */
45 HVSC /* invoke the hypervisor */
47 ld r12,STK_PARM(r4)(r1)
56 blr /* return r3 = status */
64 std r4,STK_PARM(r4)(r1) /* Save ret buffer */
72 ld r10,STK_PARM(r11)(r1) /* put arg7 in R10 */
73 ld r11,STK_PARM(r12)(r1) /* put arg8 in R11 */
74 ld r12,STK_PARM(r13)(r1) /* put arg9 in R12 */
76 HVSC /* invoke the hypervisor */
78 ld r12,STK_PARM(r4)(r1)
92 blr /* return r3 = status */