2011-04-01 12:15:23 +08:00
|
|
|
/*
|
|
|
|
* QEMU PowerPC pSeries Logical Partition (aka sPAPR) hardware System Emulator
|
|
|
|
*
|
|
|
|
* Hypercall based emulated RTAS
|
|
|
|
*
|
|
|
|
* Copyright (c) 2010-2011 David Gibson, IBM Corporation.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#include "cpu.h"
|
2012-12-18 01:20:04 +08:00
|
|
|
#include "sysemu/sysemu.h"
|
2013-04-08 22:55:25 +08:00
|
|
|
#include "sysemu/char.h"
|
2011-04-01 12:15:23 +08:00
|
|
|
#include "hw/qdev.h"
|
2012-12-18 01:20:04 +08:00
|
|
|
#include "sysemu/device_tree.h"
|
2011-04-01 12:15:23 +08:00
|
|
|
|
2013-02-06 00:06:20 +08:00
|
|
|
#include "hw/ppc/spapr.h"
|
|
|
|
#include "hw/ppc/spapr_vio.h"
|
2014-06-18 14:43:41 +08:00
|
|
|
#include "qapi-event.h"
|
2011-04-01 12:15:23 +08:00
|
|
|
|
|
|
|
#include <libfdt.h>
|
|
|
|
|
2013-06-20 04:40:30 +08:00
|
|
|
static void rtas_display_character(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
2011-04-01 12:15:24 +08:00
|
|
|
uint32_t token, uint32_t nargs,
|
|
|
|
target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
uint8_t c = rtas_ld(args, 0);
|
2012-04-04 13:02:07 +08:00
|
|
|
VIOsPAPRDevice *sdev = vty_lookup(spapr, 0);
|
2011-04-01 12:15:24 +08:00
|
|
|
|
|
|
|
if (!sdev) {
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_HW_ERROR);
|
2011-04-01 12:15:24 +08:00
|
|
|
} else {
|
|
|
|
vty_putchars(sdev, &c, sizeof(c));
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_SUCCESS);
|
2011-04-01 12:15:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-20 04:40:30 +08:00
|
|
|
static void rtas_get_time_of_day(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
2011-04-01 12:15:24 +08:00
|
|
|
uint32_t token, uint32_t nargs,
|
|
|
|
target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
struct tm tm;
|
|
|
|
|
|
|
|
if (nret != 8) {
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
|
2011-04-01 12:15:24 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2011-09-29 00:53:16 +08:00
|
|
|
qemu_get_timedate(&tm, spapr->rtc_offset);
|
2011-04-01 12:15:24 +08:00
|
|
|
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_SUCCESS);
|
2011-04-01 12:15:24 +08:00
|
|
|
rtas_st(rets, 1, tm.tm_year + 1900);
|
|
|
|
rtas_st(rets, 2, tm.tm_mon + 1);
|
|
|
|
rtas_st(rets, 3, tm.tm_mday);
|
|
|
|
rtas_st(rets, 4, tm.tm_hour);
|
|
|
|
rtas_st(rets, 5, tm.tm_min);
|
|
|
|
rtas_st(rets, 6, tm.tm_sec);
|
|
|
|
rtas_st(rets, 7, 0); /* we don't do nanoseconds */
|
|
|
|
}
|
|
|
|
|
2013-06-20 04:40:30 +08:00
|
|
|
static void rtas_set_time_of_day(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
2011-09-29 00:53:16 +08:00
|
|
|
uint32_t token, uint32_t nargs,
|
|
|
|
target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
struct tm tm;
|
|
|
|
|
|
|
|
tm.tm_year = rtas_ld(args, 0) - 1900;
|
|
|
|
tm.tm_mon = rtas_ld(args, 1) - 1;
|
|
|
|
tm.tm_mday = rtas_ld(args, 2);
|
|
|
|
tm.tm_hour = rtas_ld(args, 3);
|
|
|
|
tm.tm_min = rtas_ld(args, 4);
|
|
|
|
tm.tm_sec = rtas_ld(args, 5);
|
|
|
|
|
|
|
|
/* Just generate a monitor event for the change */
|
2014-06-18 14:43:41 +08:00
|
|
|
qapi_event_send_rtc_change(qemu_timedate_diff(&tm), &error_abort);
|
2011-09-29 00:53:16 +08:00
|
|
|
spapr->rtc_offset = qemu_timedate_diff(&tm);
|
|
|
|
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_SUCCESS);
|
2011-09-29 00:53:16 +08:00
|
|
|
}
|
|
|
|
|
2013-06-20 04:40:30 +08:00
|
|
|
static void rtas_power_off(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
2011-04-01 12:15:24 +08:00
|
|
|
uint32_t token, uint32_t nargs, target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
if (nargs != 2 || nret != 1) {
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
|
2011-04-01 12:15:24 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
qemu_system_shutdown_request();
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_SUCCESS);
|
2011-04-01 12:15:24 +08:00
|
|
|
}
|
|
|
|
|
2013-06-20 04:40:30 +08:00
|
|
|
static void rtas_system_reboot(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
2012-03-29 05:39:47 +08:00
|
|
|
uint32_t token, uint32_t nargs,
|
|
|
|
target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
if (nargs != 0 || nret != 1) {
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
|
2012-03-29 05:39:47 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
qemu_system_reset_request();
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_SUCCESS);
|
2012-03-29 05:39:47 +08:00
|
|
|
}
|
|
|
|
|
2013-06-20 04:40:30 +08:00
|
|
|
static void rtas_query_cpu_stopped_state(PowerPCCPU *cpu_,
|
|
|
|
sPAPREnvironment *spapr,
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
uint32_t token, uint32_t nargs,
|
|
|
|
target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
target_ulong id;
|
2014-02-01 22:45:52 +08:00
|
|
|
PowerPCCPU *cpu;
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
|
|
|
|
if (nargs != 1 || nret != 2) {
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
id = rtas_ld(args, 0);
|
2014-02-01 22:45:52 +08:00
|
|
|
cpu = ppc_get_vcpu_by_dt_id(id);
|
2013-05-30 03:03:31 +08:00
|
|
|
if (cpu != NULL) {
|
2014-02-01 22:45:52 +08:00
|
|
|
if (CPU(cpu)->halted) {
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
rtas_st(rets, 1, 0);
|
|
|
|
} else {
|
|
|
|
rtas_st(rets, 1, 2);
|
|
|
|
}
|
|
|
|
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_SUCCESS);
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Didn't find a matching cpu */
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
}
|
|
|
|
|
2013-06-20 04:40:30 +08:00
|
|
|
static void rtas_start_cpu(PowerPCCPU *cpu_, sPAPREnvironment *spapr,
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
uint32_t token, uint32_t nargs,
|
|
|
|
target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
target_ulong id, start, r3;
|
2014-02-01 22:45:52 +08:00
|
|
|
PowerPCCPU *cpu;
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
|
|
|
|
if (nargs != 3 || nret != 1) {
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
id = rtas_ld(args, 0);
|
|
|
|
start = rtas_ld(args, 1);
|
|
|
|
r3 = rtas_ld(args, 2);
|
|
|
|
|
2014-02-01 22:45:52 +08:00
|
|
|
cpu = ppc_get_vcpu_by_dt_id(id);
|
|
|
|
if (cpu != NULL) {
|
|
|
|
CPUState *cs = CPU(cpu);
|
2013-05-30 03:06:39 +08:00
|
|
|
CPUPPCState *env = &cpu->env;
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
|
2013-05-30 03:06:39 +08:00
|
|
|
if (!cs->halted) {
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_HW_ERROR);
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2012-09-13 00:57:10 +08:00
|
|
|
/* This will make sure qemu state is up to date with kvm, and
|
|
|
|
* mark it dirty so our changes get flushed back before the
|
|
|
|
* new cpu enters */
|
2013-05-01 19:45:44 +08:00
|
|
|
kvm_cpu_synchronize_state(cs);
|
2012-09-13 00:57:10 +08:00
|
|
|
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
env->msr = (1ULL << MSR_SF) | (1ULL << MSR_ME);
|
|
|
|
env->nip = start;
|
|
|
|
env->gpr[3] = r3;
|
2013-05-30 03:06:39 +08:00
|
|
|
cs->halted = 0;
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
|
2013-05-30 03:06:39 +08:00
|
|
|
qemu_cpu_kick(cs);
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_SUCCESS);
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Didn't find a matching cpu */
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
}
|
|
|
|
|
2013-08-30 14:11:56 +08:00
|
|
|
static void rtas_stop_self(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
|
|
|
uint32_t token, uint32_t nargs,
|
|
|
|
target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
CPUState *cs = CPU(cpu);
|
|
|
|
CPUPPCState *env = &cpu->env;
|
|
|
|
|
|
|
|
cs->halted = 1;
|
|
|
|
cpu_exit(cs);
|
|
|
|
/*
|
|
|
|
* While stopping a CPU, the guest calls H_CPPR which
|
|
|
|
* effectively disables interrupts on XICS level.
|
|
|
|
* However decrementer interrupts in TCG can still
|
|
|
|
* wake the CPU up so here we disable interrupts in MSR
|
|
|
|
* as well.
|
|
|
|
* As rtas_start_cpu() resets the whole MSR anyway, there is
|
|
|
|
* no need to bother with specific bits, we just clear it.
|
|
|
|
*/
|
|
|
|
env->msr = 0;
|
|
|
|
}
|
|
|
|
|
2013-11-19 12:28:55 +08:00
|
|
|
#define DIAGNOSTICS_RUN_MODE 42
|
|
|
|
|
|
|
|
static void rtas_ibm_get_system_parameter(PowerPCCPU *cpu,
|
|
|
|
sPAPREnvironment *spapr,
|
|
|
|
uint32_t token, uint32_t nargs,
|
|
|
|
target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
target_ulong parameter = rtas_ld(args, 0);
|
|
|
|
target_ulong buffer = rtas_ld(args, 1);
|
|
|
|
target_ulong length = rtas_ld(args, 2);
|
|
|
|
target_ulong ret = RTAS_OUT_NOT_SUPPORTED;
|
|
|
|
|
|
|
|
switch (parameter) {
|
|
|
|
case DIAGNOSTICS_RUN_MODE:
|
|
|
|
if (length == 1) {
|
|
|
|
rtas_st(buffer, 0, 0);
|
|
|
|
ret = RTAS_OUT_SUCCESS;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
rtas_st(rets, 0, ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void rtas_ibm_set_system_parameter(PowerPCCPU *cpu,
|
|
|
|
sPAPREnvironment *spapr,
|
|
|
|
uint32_t token, uint32_t nargs,
|
|
|
|
target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
|
|
|
target_ulong parameter = rtas_ld(args, 0);
|
|
|
|
target_ulong ret = RTAS_OUT_NOT_SUPPORTED;
|
|
|
|
|
|
|
|
switch (parameter) {
|
|
|
|
case DIAGNOSTICS_RUN_MODE:
|
|
|
|
ret = RTAS_OUT_NOT_AUTHORIZED;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
rtas_st(rets, 0, ret);
|
|
|
|
}
|
|
|
|
|
2011-04-01 12:15:23 +08:00
|
|
|
static struct rtas_call {
|
|
|
|
const char *name;
|
|
|
|
spapr_rtas_fn fn;
|
2014-06-23 21:26:32 +08:00
|
|
|
} rtas_table[RTAS_TOKEN_MAX - RTAS_TOKEN_BASE];
|
2011-04-01 12:15:23 +08:00
|
|
|
|
2013-06-20 04:40:30 +08:00
|
|
|
target_ulong spapr_rtas_call(PowerPCCPU *cpu, sPAPREnvironment *spapr,
|
2011-04-01 12:15:23 +08:00
|
|
|
uint32_t token, uint32_t nargs, target_ulong args,
|
|
|
|
uint32_t nret, target_ulong rets)
|
|
|
|
{
|
2014-06-23 21:26:32 +08:00
|
|
|
if ((token >= RTAS_TOKEN_BASE) && (token < RTAS_TOKEN_MAX)) {
|
|
|
|
struct rtas_call *call = rtas_table + (token - RTAS_TOKEN_BASE);
|
2011-04-01 12:15:23 +08:00
|
|
|
|
|
|
|
if (call->fn) {
|
2013-06-20 04:40:30 +08:00
|
|
|
call->fn(cpu, spapr, token, nargs, args, nret, rets);
|
2011-04-01 12:15:23 +08:00
|
|
|
return H_SUCCESS;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-04-01 12:15:24 +08:00
|
|
|
/* HACK: Some Linux early debug code uses RTAS display-character,
|
|
|
|
* but assumes the token value is 0xa (which it is on some real
|
|
|
|
* machines) without looking it up in the device tree. This
|
|
|
|
* special case makes this work */
|
|
|
|
if (token == 0xa) {
|
2013-06-20 04:40:30 +08:00
|
|
|
rtas_display_character(cpu, spapr, 0xa, nargs, args, nret, rets);
|
2011-04-01 12:15:24 +08:00
|
|
|
return H_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2011-04-01 12:15:23 +08:00
|
|
|
hcall_dprintf("Unknown RTAS token 0x%x\n", token);
|
2013-11-19 12:28:54 +08:00
|
|
|
rtas_st(rets, 0, RTAS_OUT_PARAM_ERROR);
|
2011-04-01 12:15:23 +08:00
|
|
|
return H_PARAMETER;
|
|
|
|
}
|
|
|
|
|
2014-06-23 21:26:32 +08:00
|
|
|
void spapr_rtas_register(int token, const char *name, spapr_rtas_fn fn)
|
2011-04-01 12:15:23 +08:00
|
|
|
{
|
2014-06-23 21:26:32 +08:00
|
|
|
if (!((token >= RTAS_TOKEN_BASE) && (token < RTAS_TOKEN_MAX))) {
|
|
|
|
fprintf(stderr, "RTAS invalid token 0x%x\n", token);
|
|
|
|
exit(1);
|
2012-10-09 02:17:36 +08:00
|
|
|
}
|
|
|
|
|
2014-06-23 21:26:32 +08:00
|
|
|
token -= RTAS_TOKEN_BASE;
|
|
|
|
if (rtas_table[token].name) {
|
|
|
|
fprintf(stderr, "RTAS call \"%s\" is registered already as 0x%x\n",
|
|
|
|
rtas_table[token].name, token);
|
|
|
|
exit(1);
|
|
|
|
}
|
2011-04-01 12:15:23 +08:00
|
|
|
|
2014-06-23 21:26:32 +08:00
|
|
|
rtas_table[token].name = name;
|
|
|
|
rtas_table[token].fn = fn;
|
2011-04-01 12:15:23 +08:00
|
|
|
}
|
|
|
|
|
2012-10-23 18:30:10 +08:00
|
|
|
int spapr_rtas_device_tree_setup(void *fdt, hwaddr rtas_addr,
|
|
|
|
hwaddr rtas_size)
|
2011-04-01 12:15:23 +08:00
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
ret = fdt_add_mem_rsv(fdt, rtas_addr, rtas_size);
|
|
|
|
if (ret < 0) {
|
|
|
|
fprintf(stderr, "Couldn't add RTAS reserve entry: %s\n",
|
|
|
|
fdt_strerror(ret));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2013-11-11 16:14:41 +08:00
|
|
|
ret = qemu_fdt_setprop_cell(fdt, "/rtas", "linux,rtas-base",
|
|
|
|
rtas_addr);
|
2011-04-01 12:15:23 +08:00
|
|
|
if (ret < 0) {
|
|
|
|
fprintf(stderr, "Couldn't add linux,rtas-base property: %s\n",
|
|
|
|
fdt_strerror(ret));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2013-11-11 16:14:41 +08:00
|
|
|
ret = qemu_fdt_setprop_cell(fdt, "/rtas", "linux,rtas-entry",
|
|
|
|
rtas_addr);
|
2011-04-01 12:15:23 +08:00
|
|
|
if (ret < 0) {
|
|
|
|
fprintf(stderr, "Couldn't add linux,rtas-entry property: %s\n",
|
|
|
|
fdt_strerror(ret));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2013-11-11 16:14:41 +08:00
|
|
|
ret = qemu_fdt_setprop_cell(fdt, "/rtas", "rtas-size",
|
|
|
|
rtas_size);
|
2011-04-01 12:15:23 +08:00
|
|
|
if (ret < 0) {
|
|
|
|
fprintf(stderr, "Couldn't add rtas-size property: %s\n",
|
|
|
|
fdt_strerror(ret));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2014-06-23 21:26:32 +08:00
|
|
|
for (i = 0; i < RTAS_TOKEN_MAX - RTAS_TOKEN_BASE; i++) {
|
2011-04-01 12:15:23 +08:00
|
|
|
struct rtas_call *call = &rtas_table[i];
|
|
|
|
|
2012-11-13 00:46:53 +08:00
|
|
|
if (!call->name) {
|
2011-04-01 12:15:23 +08:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2013-11-11 16:14:41 +08:00
|
|
|
ret = qemu_fdt_setprop_cell(fdt, "/rtas", call->name,
|
2014-06-23 21:26:32 +08:00
|
|
|
i + RTAS_TOKEN_BASE);
|
2011-04-01 12:15:23 +08:00
|
|
|
if (ret < 0) {
|
|
|
|
fprintf(stderr, "Couldn't add rtas token for %s: %s\n",
|
|
|
|
call->name, fdt_strerror(ret));
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2011-04-01 12:15:24 +08:00
|
|
|
|
2012-02-09 22:20:55 +08:00
|
|
|
static void core_rtas_register_types(void)
|
2011-04-01 12:15:24 +08:00
|
|
|
{
|
2014-06-23 21:26:32 +08:00
|
|
|
spapr_rtas_register(RTAS_DISPLAY_CHARACTER, "display-character",
|
|
|
|
rtas_display_character);
|
|
|
|
spapr_rtas_register(RTAS_GET_TIME_OF_DAY, "get-time-of-day",
|
|
|
|
rtas_get_time_of_day);
|
|
|
|
spapr_rtas_register(RTAS_SET_TIME_OF_DAY, "set-time-of-day",
|
|
|
|
rtas_set_time_of_day);
|
|
|
|
spapr_rtas_register(RTAS_POWER_OFF, "power-off", rtas_power_off);
|
|
|
|
spapr_rtas_register(RTAS_SYSTEM_REBOOT, "system-reboot",
|
|
|
|
rtas_system_reboot);
|
|
|
|
spapr_rtas_register(RTAS_QUERY_CPU_STOPPED_STATE, "query-cpu-stopped-state",
|
Add SLOF-based partition firmware for pSeries machine, allowing more boot options
Currently, the emulated pSeries machine requires the use of the
-kernel parameter in order to explicitly load a guest kernel. This
means booting from the virtual disk, cdrom or network is not possible.
This patch addresses this limitation by inserting a within-partition
firmware image (derived from the "SLOF" free Open Firmware project).
If -kernel is not specified, qemu will now load the SLOF image, which
has access to the qemu boot device list through the device tree, and
can boot from any of the usual virtual devices.
In order to support the new firmware, an extension to the emulated
machine/hypervisor is necessary. Unlike Linux, which expects
multi-CPU entry to be handled kexec() style, the SLOF firmware expects
only one CPU to be active at entry, and to use a hypervisor RTAS
method to enable the other CPUs one by one.
This patch also implements this 'start-cpu' method, so that SLOF can
start the secondary CPUs and marshal them into the kexec() holding
pattern ready for entry into the guest OS. Linux should, and in the
future might directly use the start-cpu method to enable initially
disabled CPUs, but for now it does require kexec() entry.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-04-01 12:15:34 +08:00
|
|
|
rtas_query_cpu_stopped_state);
|
2014-06-23 21:26:32 +08:00
|
|
|
spapr_rtas_register(RTAS_START_CPU, "start-cpu", rtas_start_cpu);
|
|
|
|
spapr_rtas_register(RTAS_STOP_SELF, "stop-self", rtas_stop_self);
|
|
|
|
spapr_rtas_register(RTAS_IBM_GET_SYSTEM_PARAMETER,
|
|
|
|
"ibm,get-system-parameter",
|
2013-11-19 12:28:55 +08:00
|
|
|
rtas_ibm_get_system_parameter);
|
2014-06-23 21:26:32 +08:00
|
|
|
spapr_rtas_register(RTAS_IBM_SET_SYSTEM_PARAMETER,
|
|
|
|
"ibm,set-system-parameter",
|
2013-11-19 12:28:55 +08:00
|
|
|
rtas_ibm_set_system_parameter);
|
2011-04-01 12:15:24 +08:00
|
|
|
}
|
2012-02-09 22:20:55 +08:00
|
|
|
|
|
|
|
type_init(core_rtas_register_types)
|