diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-02-21 07:07:06 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-02-26 03:55:18 -0500 |
commit | eab6a08c082b82dff884eb49a2229b0474d0b7e5 (patch) | |
tree | 4acffa75b89ecdef8d4f38558155b0afdd2fbe19 /arch/arc/include | |
parent | fc32781bfdb56dad883469b65e468e749ef35fe5 (diff) |
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>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/mach_desc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arc/include/asm/mach_desc.h b/arch/arc/include/asm/mach_desc.h index eaebaf835f85..9998dc846ebb 100644 --- a/arch/arc/include/asm/mach_desc.h +++ b/arch/arc/include/asm/mach_desc.h | |||
@@ -82,4 +82,6 @@ __attribute__((__section__(".arch.info.init"))) = { \ | |||
82 | }; | 82 | }; |
83 | 83 | ||
84 | extern struct machine_desc *setup_machine_fdt(void *dt); | 84 | extern struct machine_desc *setup_machine_fdt(void *dt); |
85 | extern void __init copy_devtree(void); | ||
86 | |||
85 | #endif | 87 | #endif |