Thread (1 message) 1 message, 1 author, 2011-03-02

[PATCH 1/4] ARM:boot:device tree: Allow the device tree binary to be appended to zImage

From: Nicolas Pitre <hidden>
Date: 2011-03-02 02:37:51
Also in: linux-devicetree

On Tue, 1 Mar 2011, John Bonesio wrote:
I have looked through, and I'm reworking the patch set. I have just one
comment below.

- John

On 02/28/2011 10:39 PM, Nicolas Pitre wrote:
quoted
On Mon, 28 Feb 2011, John Bonesio wrote:
[...]
quoted
quoted
+
+		/* bump our bss registers too */
+		add	r2, r2, r5
+		add	r3, r3, r5
+
+		/* bump the stack pinter, if at or above _edata */
+		cmp	sp, r6
+		addcs	sp, sp, r5
This will always be true as this is within #ifndef CONFIG_ZBOOT_ROM.
Right now sp will always be above r6. I thought it might be prudent to
add the test in case the linker script changed and the stack was placed
elsewhere. It might save someone a headache later.
That's what comments are for.  And if someone modifies the linker script 
without understanding the affected code then that someone deserves the 
pain.


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