powerpc: introduce ePAPR embedded hypervisor hcall interface
commitbd497fc9782769d5bce58fbf468eabfce9e98ce0
authorTimur Tabi <timur@freescale.com>
Thu, 19 May 2011 13:54:27 +0000 (19 08:54 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 27 Jun 2011 13:30:19 +0000 (27 08:30 -0500)
tree0dcbc696f096c42d9e6604ef6a07e167a5e01225
parent6ec36b5848a8336d3a0010727b9365c3254d2d2e
powerpc: introduce ePAPR embedded hypervisor hcall interface

ePAPR hypervisors provide operating system services via a "hypercall"
interface.  The following steps need to be performed to make an hcall:

1. Load r11 with the hcall number
2. Load specific other registers with parameters
3. Issue instrucion "sc 1"
4. The return code is in r3
5. Other returned parameters are in other registers.

To provide this service to the kernel, these steps are wrapped in inline
assembly functions.  Standard ePAPR hcalls are in epapr_hcalls.h, and
Freescale extensions are in fsl_hcalls.h.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/epapr_hcalls.h [new file with mode: 0644]
arch/powerpc/include/asm/fsl_hcalls.h [new file with mode: 0644]