aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/libfdt
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2012-04-02 16:50:42 +0100
committerDavid Vrabel <david.vrabel@citrix.com>2012-04-02 16:50:42 +0100
commit13bb63b754e433301bef330c4087743677c4ffb8 (patch)
treea1568334d526898a12fe7f9a9bbe42b7835ec98d /xen/include/xen/libfdt
parent3db570f4f9baddb1666cf530e3307784e823d308 (diff)
downloadxen-13bb63b754e433301bef330c4087743677c4ffb8.tar.gz
xen-13bb63b754e433301bef330c4087743677c4ffb8.tar.bz2
xen-13bb63b754e433301bef330c4087743677c4ffb8.zip
device tree,arm: supply a flat device tree to dom0
Build a flat device tree for dom0 based on the one supplied to Xen. The following changes are made: * In the /chosen node, the xen,dom0-bootargs parameter is renamed to bootargs. * In all memory nodes, the reg parameters are adjusted to reflect the amount of memory dom0 can use. The p2m is updated using this info. Support for passing ATAGS to dom0 is removed. Signed-off-by: David Vrabel <david.vrabel@citrix.com> [ removed device_tree_dump call -- ijc ] Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/xen/libfdt')
-rw-r--r--xen/include/xen/libfdt/libfdt_env.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/xen/libfdt/libfdt_env.h b/xen/include/xen/libfdt/libfdt_env.h
index 8c0c03034b..2f1b03c8e6 100644
--- a/xen/include/xen/libfdt/libfdt_env.h
+++ b/xen/include/xen/libfdt/libfdt_env.h
@@ -13,4 +13,7 @@
#define fdt64_to_cpu(x) be64_to_cpu(x)
#define cpu_to_fdt64(x) cpu_to_be64(x)
+/* Xen-specific libfdt error code. */
+#define FDT_ERR_XEN(err) (FDT_ERR_MAX + (err))
+
#endif /* _LIBFDT_ENV_H */