[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 05/12] pseries: Allow RTAS tokens without a qemu handl
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCH 05/12] pseries: Allow RTAS tokens without a qemu handler |
Date: |
Tue, 13 Nov 2012 13:46:53 +1100 |
From: Ben Herrenschmidt <address@hidden>
Kernel-based RTAS calls will not have a qemu handler, but will
still be registered in qemu in order to be assigned a token
number and appear in the device-tree.
Let's test for the name being NULL rather than the handler
when deciding to skip an entry while building the device-tree
Signed-off-by: Benjamin Herrenschmidt <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/spapr_rtas.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/spapr_rtas.c b/hw/spapr_rtas.c
index 45294e8..e618c2d 100644
--- a/hw/spapr_rtas.c
+++ b/hw/spapr_rtas.c
@@ -301,7 +301,7 @@ int spapr_rtas_device_tree_setup(void *fdt, hwaddr
rtas_addr,
for (i = 0; i < TOKEN_MAX; i++) {
struct rtas_call *call = &rtas_table[i];
- if (!call->fn) {
+ if (!call->name) {
continue;
}
--
1.7.10.4
- Re: [Qemu-ppc] [PATCH 12/12] pseries: Generate unique LIOBNs for PCI host bridges, (continued)
[Qemu-ppc] [PATCH 11/12] pseries: Fix bug in PCI MSI allocation, David Gibson, 2012/11/12
[Qemu-ppc] [PATCH 09/12] pseries: Implement PAPR NVRAM, David Gibson, 2012/11/12
[Qemu-ppc] [PATCH 03/12] pseries: Move XICS initialization before cpu initialization, David Gibson, 2012/11/12
[Qemu-ppc] [PATCH 05/12] pseries: Allow RTAS tokens without a qemu handler,
David Gibson <=
[Qemu-ppc] [PATCH 10/12] pseries: Update SLOF for NVRAM support, David Gibson, 2012/11/12
Re: [Qemu-ppc] [0/12] Pending pseries patches, Alexander Graf, 2012/11/19