[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] device_tree.c: Terminate the empty reservemap i
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH] device_tree.c: Terminate the empty reservemap in create_device_tree() |
Date: |
Tue, 10 Sep 2013 11:47:08 -0500 |
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 we were not
> calling fdt_finish_reservemap(), which meant that there was no
> terminator in the reservemap list and whatever happened to be at the
> start of the FDT data section would end up being interpreted as
> reservemap entries. Avoid this by calling fdt_finish_reservemap()
> to add the terminator.
>
> Signed-off-by: Peter Maydell <address@hidden>
Acked-by: Alexander Graf <address@hidden>
Peter C, will you take this into your tree?
Alex