Re: [Qemu-devel] [PATCH] device_tree.c: Terminate the empty reservemap in create_device_tree()

2013-09-10 Thread Alexander Graf
On 10.09.2013, at 08:51, Peter Maydell wrote: > Device trees created with create_device_tree() may not have any > entries in their reservemap, because the FDT API requires that the > reservemap is completed before any FDT nodes are added, and > create_device_tree() itself creates a node. However

[Qemu-devel] [PATCH] device_tree.c: Terminate the empty reservemap in create_device_tree()

2013-09-10 Thread Peter Maydell
Device trees created with create_device_tree() may not have any entries in their reservemap, because the FDT API requires that the reservemap is completed before any FDT nodes are added, and create_device_tree() itself creates a node. However we were not calling fdt_finish_reservemap(), which mean