1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * PS3 bootwrapper hvcalls.
5 * Copyright (C) 2007 Sony Computer Entertainment Inc.
6 * Copyright 2007 Sony Corp.
14 * The PS3 hypervisor uses a 64 bit "C" language calling convention.
15 * The routines here marshal arguments between the 32 bit wrapper
16 * program and the 64 bit hvcalls.
25 * 5: 8(r1),12(r1) <-> r7
26 * 6: 16(r1),20(r1) <-> r8
27 * 7: 24(r1),28(r1) <-> r9
28 * 8: 32(r1),36(r1) <-> r10
39 .macro NO_SUPPORT name
50 .macro SAVE_LR offset=4
55 .macro LOAD_LR offset=4
60 .macro LOAD_64_REG target,high,low
65 .macro LOAD_64_STACK target,offset
66 ld \target, \offset(r1)
125 .macro STORE_REGS_0_1
133 .macro STORE_REGS_5_2
140 .macro STORE_REGS_6_1
145 GLOBAL lv1_get_logical_ppe_id
153 GLOBAL lv1_get_logical_partition_id
161 GLOBAL lv1_get_repository_node_value