Thread (1 message) 1 message, 1 author, 2011-06-12

Re: [PATCH] ARM: Make sure appended device tree data won't overlap kernel BSS

From: Nicolas Pitre <hidden>
Date: 2011-06-12 06:14:13
Also in: linux-arm-kernel

On Fri, 13 May 2011, Tony Lindgren wrote:
From: Tony Lindgren <redacted>
Date: Thu, 12 May 2011 05:29:49 -0700
Subject: [PATCH] ARM: zImage: Make sure appended device tree data won't overlap kernel BSS

Do this before relocating the compressed kernel + device tree data.
Otherwise we would have to split the copying into two parts, or copy
the device tree data twice.

As we only have one register available, pass the size of kernel BSS
via linker and do the calculation using r1, then save it to the stack.

Note that this patch now makes the stack also usable earlier for
CONFIG_ARM_APPENDED_DTB.

Signed-off-by: Tony Lindgren <redacted>
[...]

Please tell me what you think of this alternative: 
http://article.gmane.org/gmane.linux.ports.arm.kernel/120182
I think it is a cleaner solution.


Nicolas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help