Browse Source

feat(qemu-sbsa): mpidr needs to be present

Coverity Scan reminded that we need to take care of MPIDR properly.
We need to make sure that we get MPIDR values from QEMU.

No MPIDR == panic() in case which should not happen.

Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Change-Id: Idb5fe7d958f0bcecd3d66a643743f478538f4a8b
pull/1999/merge
Marcin Juszkiewicz 10 months ago
parent
commit
4fc54c99d0
  1. 3
      plat/qemu/qemu_sbsa/sbsa_sip_svc.c

3
plat/qemu/qemu_sbsa/sbsa_sip_svc.c

@ -103,6 +103,9 @@ void read_cpuinfo_from_dt(void *dtb)
while (node > 0) {
if (fdt_getprop(dtb, node, "reg", NULL)) {
fdt_get_reg_props_by_index(dtb, node, 0, &mpidr, NULL);
} else {
ERROR("Incomplete information for cpu %d in DeviceTree.\n", cpu);
panic();
}
if (fdt_getprop(dtb, node, "numa-node-id", NULL)) {

Loading…
Cancel
Save