2 * This file contains the code to perform calls to the
3 * iSeries 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.
11 #include <asm/ppc_asm.h>
12 #include <asm/processor.h>
13 #include <asm/ptrace.h> /* XXX for STACK_FRAME_OVERHEAD */
20 * Invoke the iSeries hypervisor via the System Call instruction
21 * Parameters are passed to this routine in registers r3 - r10
23 * r3 contains the HV function to be called
24 * r4-r10 contain the operands to the hypervisor function
41 stdu r1,-(STACK_FRAME_OVERHEAD+16)(r1)
43 /* r0 = 0xffffffffffffffff indicates a hypervisor call */
47 /* Invoke the hypervisor */
55 /* return to caller, return value in r3 */
71 stdu r1,-(STACK_FRAME_OVERHEAD+32)(r1)