Deleted Added
full compact
phyp-hvcall.S (256281) phyp-hvcall.S (257292)
1/*-
2 * Copyright (C) 2010 Andreas Tobler
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 8 unchanged lines hidden (view full) ---

17 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
1/*-
2 * Copyright (C) 2010 Andreas Tobler
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 8 unchanged lines hidden (view full) ---

17 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * $FreeBSD: stable/10/sys/powerpc/pseries/phyp-hvcall.S 255643 2013-09-17 17:37:04Z nwhitehorn $
25 * $FreeBSD: stable/10/sys/powerpc/pseries/phyp-hvcall.S 257292 2013-10-28 23:47:52Z nwhitehorn $
26 */
27#include <machine/asm.h>
28
29/* Hypervisor entry call. */
30#define hc .long 0x44000022
31
32/*
33 * Simple HV calls take the same arguments, with the same ABI, as this
34 * C function
35 */
36ASENTRY(phyp_hcall)
37 mflr %r0
38 std %r0,16(%r1)
26 */
27#include <machine/asm.h>
28
29/* Hypervisor entry call. */
30#define hc .long 0x44000022
31
32/*
33 * Simple HV calls take the same arguments, with the same ABI, as this
34 * C function
35 */
36ASENTRY(phyp_hcall)
37 mflr %r0
38 std %r0,16(%r1)
39 ld %r11,112(%r1) /* Last couple args into volatile regs*/
40 ld %r12,120(%r1)
39 hc /* invoke the hypervisor */
40 ld %r0,16(%r1)
41 mtlr %r0
42 blr /* return r3 = status */
43
44/*
45 * PFT HV calls take a special ABI (see PAPR 14.5.4.1)
46 *

--- 22 unchanged lines hidden ---
41 hc /* invoke the hypervisor */
42 ld %r0,16(%r1)
43 mtlr %r0
44 blr /* return r3 = status */
45
46/*
47 * PFT HV calls take a special ABI (see PAPR 14.5.4.1)
48 *

--- 22 unchanged lines hidden ---