Changeset adb403b9 in rtems for cpukit

Timestamp:
05/09/19 09:41:21 (5 years ago)
Author:
Nicholas Piggin <npiggin@…>
Branches:
5, master
Children:
b00040b2
Parents:
4902d42
git-author:
Nicholas Piggin <npiggin@…> (05/09/19 09:41:21)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/02/20 06:52:20)
Message:

libfdt: Introduce fdt_create_with_flags()

There is a need to be able to specify some options when building an FDT
with the SW interface. This can be accomplished with minimal changes by
storing intermediate data in the fdt header itself, in fields that are
not otherwise needed during the creation process and can be set by
fdt_finish().

The fdt.magic field is already used exactly this way, as a state to
check with callers that the FDT has been created but not yet finished.

fdt.version and fdt.last_comp_version are used to make room for more
intermediate state. These are adjacent and unused during the building
process. last_comp_version is not yet used for intermediate state, but
it is zeroed and treated as used, so as to allow future growth easily.

A new interface, fdt_create_with_flags() is added, which takes 32-bit
flag value to control creation.

Signed-off-by: Nicholas Piggin <npiggin@…>
Message-Id: <20190509094122.834-3-npiggin@…>
Signed-off-by: David Gibson <david@…>

(No files)

Note: See TracChangeset for help on using the changeset viewer.