spapr: Initialize reserved areas list in FDT in H_CAS handler
commit127f03e4426a7a8c5c63e277e0cdd88af80d0c8f
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 5 Apr 2018 02:07:38 +0000 (5 12:07 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 10 Apr 2018 00:05:38 +0000 (10 10:05 +1000)
tree9bd000ce432f8ed45122ffcb63825faf1259930d
parentefb7db250adad82c4bb302f0a80e4ae0c641f0d6
spapr: Initialize reserved areas list in FDT in H_CAS handler

At the moment the device tree produced by the H_CAS handler has no
reserved map initialized at all which is not correct as at least one
empty record is required to be present as a marker of the end.
This does not cause problems now as the only consumer is SLOF which
does not look at the reserved map area.

However when DTC's "Improve libfdt's memory safety" changeset hits
the QEMU upstream, there will be errors reported and crashes observed.

This fixes the problem by adding an empty entry to the reserved map,
just like create_device_tree() does already.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c