[Skiboot] [PATCH 1/6] cpu: use dt accessor device tree access
Nicholas Piggin
npiggin at gmail.com
Wed Sep 25 11:19:16 AEST 2019
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
core/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/cpu.c b/core/cpu.c
index d0e4cdc1c..b3433aef5 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -1214,7 +1214,7 @@ void init_all_cpus(void)
t = &cpu_stacks[pir + thread].cpu;
init_cpu_thread(t, state, pir + thread);
t->trace = boot_cpu->trace;
- t->server_no = ((const u32 *)p->prop)[thread];
+ t->server_no = dt_property_get_cell(p, thread);
t->is_secondary = true;
t->primary = pt;
t->node = cpu;
--
2.23.0
More information about the Skiboot
mailing list