Statistics
| Branch: | Revision:

root / pc-bios / spapr-rtas / spapr-rtas.S @ 01e26b0e

History | View | Annotate | Download (1.4 kB)

1 39ac8455 David Gibson
/*
2 39ac8455 David Gibson
 * QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator
3 39ac8455 David Gibson
 *
4 39ac8455 David Gibson
 * Trivial in-partition RTAS implementation, based on a hypercall
5 39ac8455 David Gibson
 *
6 39ac8455 David Gibson
 * Copyright (c) 2010,2011 David Gibson, IBM Corporation.
7 39ac8455 David Gibson
 *
8 39ac8455 David Gibson
 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 39ac8455 David Gibson
 * of this software and associated documentation files (the "Software"), to deal
10 39ac8455 David Gibson
 * in the Software without restriction, including without limitation the rights
11 39ac8455 David Gibson
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 39ac8455 David Gibson
 * copies of the Software, and to permit persons to whom the Software is
13 39ac8455 David Gibson
 * furnished to do so, subject to the following conditions:
14 39ac8455 David Gibson
 *
15 39ac8455 David Gibson
 * The above copyright notice and this permission notice shall be included in
16 39ac8455 David Gibson
 * all copies or substantial portions of the Software.
17 39ac8455 David Gibson
 *
18 39ac8455 David Gibson
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 39ac8455 David Gibson
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 39ac8455 David Gibson
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 39ac8455 David Gibson
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 39ac8455 David Gibson
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 39ac8455 David Gibson
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 39ac8455 David Gibson
 * THE SOFTWARE.
25 39ac8455 David Gibson
 *
26 39ac8455 David Gibson
 */
27 39ac8455 David Gibson
28 39ac8455 David Gibson
#define KVMPPC_HCALL_BASE       0xf000
29 39ac8455 David Gibson
#define KVMPPC_H_RTAS           (KVMPPC_HCALL_BASE + 0x0)
30 39ac8455 David Gibson
31 39ac8455 David Gibson
.globl	_start
32 39ac8455 David Gibson
_start:
33 39ac8455 David Gibson
	mr	4,3
34 39ac8455 David Gibson
	lis	3,KVMPPC_H_RTAS@h
35 39ac8455 David Gibson
	ori	3,3,KVMPPC_H_RTAS@l
36 39ac8455 David Gibson
	sc	1
37 39ac8455 David Gibson
	blr