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

2011-06-13 Thread Tony Lindgren
* Nicolas Pitre [110611 23:09]: > On Fri, 13 May 2011, Tony Lindgren wrote: > > > From: Tony Lindgren > > 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 ke

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

2011-06-11 Thread Nicolas Pitre
On Fri, 13 May 2011, Tony Lindgren wrote: > From: Tony Lindgren > 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 hav

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

2011-06-07 Thread Tony Lindgren
* Nicolas Pitre [110607 06:10]: > On Tue, 7 Jun 2011, Tony Lindgren wrote: > > > * Tony Lindgren [110513 16:25]: > > > * Nicolas Pitre [110513 06:06]: > > > > On Fri, 13 May 2011, Tony Lindgren wrote: > > > > > > > > > > OK, no problem. Got those cleanup patches available somewhere? > > > > >

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

2011-06-07 Thread Nicolas Pitre
On Tue, 7 Jun 2011, Tony Lindgren wrote: > * Tony Lindgren [110513 16:25]: > > * Nicolas Pitre [110513 06:06]: > > > On Fri, 13 May 2011, Tony Lindgren wrote: > > > > > > > > OK, no problem. Got those cleanup patches available somewhere? > > > > > > They,re available in branch 'zImage_fixes' o

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

2011-06-07 Thread Tony Lindgren
* Tony Lindgren [110513 16:25]: > * Nicolas Pitre [110513 06:06]: > > On Fri, 13 May 2011, Tony Lindgren wrote: > > > > > > OK, no problem. Got those cleanup patches available somewhere? > > > > They,re available in branch 'zImage_fixes' of > > git://git.linaro.org/people/nico/linux > > and in

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

2011-05-13 Thread Tony Lindgren
* Nicolas Pitre [110513 06:06]: > On Fri, 13 May 2011, Tony Lindgren wrote: > > > > OK, no problem. Got those cleanup patches available somewhere? > > They,re available in branch 'zImage_fixes' of > git://git.linaro.org/people/nico/linux > and in RMK's devel-stable branch as well. OK, in that

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

2011-05-13 Thread Nicolas Pitre
On Fri, 13 May 2011, Tony Lindgren wrote: > * Nicolas Pitre [110513 00:35]: > > On Thu, 12 May 2011, Tony Lindgren wrote: > > > > > > + str r1, [sp, #0]@ save offset into stack > > > > This is actually outside the stack area if you want to be strictly > > correct. Shoul

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

2011-05-13 Thread Tony Lindgren
* Nicolas Pitre [110513 00:35]: > On Thu, 12 May 2011, Tony Lindgren wrote: > > > > + str r1, [sp, #0]@ save offset into stack > > This is actually outside the stack area if you want to be strictly > correct. Should be "str r1, [sp, #-4]!". Thanks, yes we should use i

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

2011-05-13 Thread Nicolas Pitre
; and we can get multiple relocations now. > > Here's a better version that also makes the stack usable early. > That might become handy for further changes. > > Will still do a bit more testing on this on Friday. > > Tony > > > From: Tony Lindgren > Date:

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

2011-05-12 Thread Tony Lindgren
ack usable early. That might become handy for further changes. Will still do a bit more testing on this on Friday. Tony From: Tony Lindgren Date: Thu, 12 May 2011 05:29:49 -0700 Subject: [PATCH] ARM: Make sure appended device tree data won't overlap kernel BSS Do this before relocating th

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

2011-05-09 Thread Tony Lindgren
* Tony Lindgren [110509 14:16]: > 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 th

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

2011-05-09 Thread Tony Lindgren
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 following calculation using r1. Signed-off