direct-io.hg

view xen/arch/powerpc/of_handler/xen_hvcall.S @ 15490:06a32f040d64

[POWERPC][FIRMWARE] Firmware can now provide an RTAS stub

If the firmwares devtree contains a /rtas node, then firmware will
supply the interfaces that will allow a small RTAS stub to be
instantiated. The RTAS stub is simply an hvcall that passes the RTAS
command block to the hypervisor.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Sun Jun 03 10:39:31 2007 -0400 (2007-06-03)
parents 050de6b53961
children
line source
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15 *
16 * Copyright (C) IBM Corp. 2005, 2007
17 *
18 * Authors: Jimi Xenidis <jimix@watson.ibm.com>
19 */
21 #include <asm/config.h>
22 #include <asm/processor.h>
23 #include <asm/papr.h>
24 #include <asm/asm-offsets.h>
26 #define HSC .long 0x44000022
28 _GLOBAL(xen_hvcall)
29 HSC
30 blr
32 /* The following stub will get instantiated as RTAS in the guest */
33 #define H_RTAS_PROXY 23
34 .p2align 3
35 .global _rtas_image_start
36 .global _rtas_image_end
37 _rtas_image_start:
38 mr r4,r3
39 lis r3,0xffff
40 ori r3,r3,H_RTAS_PROXY
41 HSC
42 blr
43 nop
44 _rtas_image_end: