]> git.baikalelectronics.ru Git - kernel.git/commit
metag: copy devicetree to non-init memory
authorJames Hogan <james.hogan@imgtec.com>
Wed, 20 Feb 2013 13:59:13 +0000 (13:59 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Sat, 2 Mar 2013 20:11:17 +0000 (20:11 +0000)
commitd1bb0fd2e7ca0c6d4edba20bd2cb83cc6c218428
treec72e32a15d041cfe38560dca277f335da3f6e7cf
parentcf368c5ca935a39e2c72d75c9f20a6bd43d53f3d
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>
arch/metag/include/asm/prom.h
arch/metag/kernel/devtree.c
arch/metag/kernel/setup.c