]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: make a copy of flat DT
authorVineet Gupta <vgupta@synopsys.com>
Thu, 21 Feb 2013 12:07:06 +0000 (17:37 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 26 Feb 2013 08:55:18 +0000 (14:25 +0530)
commit06d0d9c63ac5524b4debc4c53be522308b2c492d
tree4acffa75b89ecdef8d4f38558155b0afdd2fbe19
parent4167a0bb61e673129c51204d3ae5cf73a9297764
ARC: make a copy of flat DT

The flat DT (currently embedded in vmlinux) is in .init section.
The unflattened/binary tree doesn't copy strings through and references
them from orig flat DT - which could cause catestrohpy if of_* APIs are
called post init, say from a driver which is a loadable module.

Reported-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/mach_desc.h
arch/arc/kernel/devtree.c
arch/arc/kernel/setup.c