Re: [U-Boot] [U-Boot, v7, 2/2] arm: move gd handling outside of C code

2016-01-14 Thread Stephen Warren
On 01/14/2016 12:45 PM, Tom Rini wrote: On Thu, Jan 14, 2016 at 12:27:02PM -0700, Stephen Warren wrote: On 01/14/2016 12:11 PM, Tom Rini wrote: On Thu, Jan 14, 2016 at 11:35:39AM -0700, Stephen Warren wrote: On 01/14/2016 06:20 AM, Tom Rini wrote: On Wed, Nov 25, 2015 at 05:56:33PM +0100, Alb

Re: [U-Boot] [U-Boot, v7, 2/2] arm: move gd handling outside of C code

2016-01-14 Thread Tom Rini
On Thu, Jan 14, 2016 at 12:27:02PM -0700, Stephen Warren wrote: > On 01/14/2016 12:11 PM, Tom Rini wrote: > >On Thu, Jan 14, 2016 at 11:35:39AM -0700, Stephen Warren wrote: > >>On 01/14/2016 06:20 AM, Tom Rini wrote: > >>>On Wed, Nov 25, 2015 at 05:56:33PM +0100, Albert ARIBAUD wrote: > >>> > A

Re: [U-Boot] [U-Boot, v7, 2/2] arm: move gd handling outside of C code

2016-01-14 Thread Stephen Warren
On 01/14/2016 12:11 PM, Tom Rini wrote: On Thu, Jan 14, 2016 at 11:35:39AM -0700, Stephen Warren wrote: On 01/14/2016 06:20 AM, Tom Rini wrote: On Wed, Nov 25, 2015 at 05:56:33PM +0100, Albert ARIBAUD wrote: As of gcc 5.2.1 for Thumb-1, it is not possible any more to assign gd from C code, as

Re: [U-Boot] [U-Boot, v7, 2/2] arm: move gd handling outside of C code

2016-01-14 Thread Tom Rini
On Thu, Jan 14, 2016 at 11:35:39AM -0700, Stephen Warren wrote: > On 01/14/2016 06:20 AM, Tom Rini wrote: > >On Wed, Nov 25, 2015 at 05:56:33PM +0100, Albert ARIBAUD wrote: > > > >>As of gcc 5.2.1 for Thumb-1, it is not possible any > >>more to assign gd from C code, as gd is mapped to r9, > >>and

Re: [U-Boot] [U-Boot, v7, 2/2] arm: move gd handling outside of C code

2016-01-14 Thread Stephen Warren
On 01/14/2016 06:20 AM, Tom Rini wrote: On Wed, Nov 25, 2015 at 05:56:33PM +0100, Albert ARIBAUD wrote: As of gcc 5.2.1 for Thumb-1, it is not possible any more to assign gd from C code, as gd is mapped to r9, and r9 may now be saved in the prolog sequence, and restored in the epilog sequence,

Re: [U-Boot] [U-Boot, v7, 2/2] arm: move gd handling outside of C code

2016-01-14 Thread Tom Rini
On Wed, Nov 25, 2015 at 05:56:33PM +0100, Albert ARIBAUD wrote: > As of gcc 5.2.1 for Thumb-1, it is not possible any > more to assign gd from C code, as gd is mapped to r9, > and r9 may now be saved in the prolog sequence, and > restored in the epilog sequence, of any C functions. > > Therefore