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
26 * The PS3 hypervisor uses a 64 bit "C" language calling convention.
27 * The routines here marshal arguments between the 32 bit wrapper
28 * program and the 64 bit hvcalls.
37 * 5: 8(r1),12(r1) <-> r7
38 * 6: 16(r1),20(r1) <-> r8
39 * 7: 24(r1),28(r1) <-> r9
40 * 8: 32(r1),36(r1) <-> r10
51 .macro NO_SUPPORT name
62 .macro SAVE_LR offset=4
67 .macro LOAD_LR offset=4
72 .macro LOAD_64_REG target,high,low
77 .macro LOAD_64_STACK target,offset
78 ld \target, \offset(r1)
137 .macro STORE_REGS_0_1
145 .macro STORE_REGS_5_2
152 .macro STORE_REGS_6_1
157 GLOBAL lv1_get_logical_ppe_id
165 GLOBAL lv1_get_logical_partition_id
173 GLOBAL lv1_get_repository_node_value