| * This file contains the code to perform calls to the |
| * iSeries LPAR hypervisor |
| * This program is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU General Public License |
| * as published by the Free Software Foundation; either version |
| * 2 of the License, or (at your option) any later version. |
| #include <asm/processor.h> |
| #include <asm/ptrace.h> /* XXX for STACK_FRAME_OVERHEAD */ |
| * Invoke the iSeries hypervisor via the System Call instruction |
| * Parameters are passed to this routine in registers r3 - r10 |
| * r3 contains the HV function to be called |
| * r4-r10 contain the operands to the hypervisor function |
| stdu r1,-(STACK_FRAME_OVERHEAD+16)(r1) |
| /* r0 = 0xffffffffffffffff indicates a hypervisor call */ |
| /* Invoke the hypervisor */ |
| /* return to caller, return value in r3 */ |
| stdu r1,-(STACK_FRAME_OVERHEAD+32)(r1) |