summaryrefslogtreecommitdiffstats
path: root/arch/metag/include
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2013-02-20 13:59:13 +0000
committerJames Hogan <james.hogan@imgtec.com>2013-03-02 20:11:17 +0000
commit2270e6d30bb6601ffd42e9d972442df0499ad547 (patch)
treec72e32a15d041cfe38560dca277f335da3f6e7cf /arch/metag/include
parentd7900504480ea9d49a6b5f8811f2678ad08d3255 (diff)
downloadlinux-2270e6d30bb6601ffd42e9d972442df0499ad547.tar.bz2
metag: copy devicetree to non-init memory
Make a copy of the device tree blob in non-init memory. It is required when using built-in device tree files that the platform code copies the blob to non-init memory prior to calling unflatten_device_tree(), otherwise the strings that the device tree refer to will get poisoned and potentially reused, breaking later reading of the device tree post-init (such as compatible matching in modules, debugfs, and the procfs interface). Signed-off-by: James Hogan <james.hogan@imgtec.com> Reviewed-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/metag/include')
-rw-r--r--arch/metag/include/asm/prom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/metag/include/asm/prom.h b/arch/metag/include/asm/prom.h
index d881396c392c..ccac97e865d0 100644
--- a/arch/metag/include/asm/prom.h
+++ b/arch/metag/include/asm/prom.h
@@ -18,6 +18,7 @@
#define HAVE_ARCH_DEVTREE_FIXUPS
extern struct machine_desc *setup_machine_fdt(void *dt);
+extern void copy_fdt(void);
extern void metag_dt_memblock_reserve(void);
#endif /* __ASM_METAG_PROM_H */