2 * PS3 bootwrapper hvcalls.
4 * Copyright (C) 2007 Sony Computer Entertainment Inc.
5 * Copyright 2007 Sony Corp.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * The PS3 hypervisor uses a 64 bit "C" language calling convention.
25 * The routines here marshal arguments between the 32 bit wrapper
26 * program and the 64 bit hvcalls.
35 * 5: 8(r1),12(r1) <-> r7
36 * 6: 16(r1),20(r1) <-> r8
37 * 7: 24(r1),28(r1) <-> r9
38 * 8: 32(r1),36(r1) <-> r10
49 .macro NO_SUPPORT name
60 .macro SAVE_LR offset=4
65 .macro LOAD_LR offset=4
70 .macro LOAD_64_REG target,high,low
75 .macro LOAD_64_STACK target,offset
76 ld \target, \offset(r1)
135 .macro STORE_REGS_0_1
143 .macro STORE_REGS_5_2
150 .macro STORE_REGS_6_1
155 GLOBAL lv1_get_logical_ppe_id
163 GLOBAL lv1_get_logical_partition_id
171 GLOBAL lv1_get_repository_node_value