Re: [U-Boot] printf and R9 in ARM architecture

2015-01-20 Thread Albert ARIBAUD
Hello Thomas, On Tue, 20 Jan 2015 19:34:32 +0800, Da Shi Cao wrote: > No, I didn't use that option. This option should fix it. Please also look at other options used for hello_world, as you might hit other compatibility-related issues if you're not using the same ones. > Thanks a lot. No prob

Re: [U-Boot] printf and R9 in ARM architecture

2015-01-20 Thread Da Shi Cao
No, I didn't use that option. This option should fix it. Thanks a lot. Thomas On Tue, Jan 20, 2015 at 5:37 PM, Albert ARIBAUD wrote: > Hello Dashi Cao, > > On Tue, 20 Jan 2015 14:12:35 +0800, Da Shi Cao > wrote: >> In standalone applications, it seems that the execution of printf >> function in

Re: [U-Boot] printf and R9 in ARM architecture

2015-01-20 Thread Marek Vasut
On Tuesday, January 20, 2015 at 07:12:35 AM, Da Shi Cao wrote: > In standalone applications, it seems that the execution of printf > function in U-Boot is dependent on the value of register R9, which is > setup in app_startup. But r9 can be used by your program at the > decision of gcc compilation

Re: [U-Boot] printf and R9 in ARM architecture

2015-01-20 Thread Albert ARIBAUD
Hello Dashi Cao, On Tue, 20 Jan 2015 14:12:35 +0800, Da Shi Cao wrote: > In standalone applications, it seems that the execution of printf > function in U-Boot is dependent on the value of register R9, which is > setup in app_startup. But r9 can be used by your program at the > decision of gcc co

[U-Boot] printf and R9 in ARM architecture

2015-01-19 Thread Da Shi Cao
In standalone applications, it seems that the execution of printf function in U-Boot is dependent on the value of register R9, which is setup in app_startup. But r9 can be used by your program at the decision of gcc compilation which is not aware of this dependence. This is especially the case if +