[Gta04-owner] [PATCH] fix build with current gcc/binutils
Lukas Märdian
lukasmaerdian at googlemail.com
Wed Oct 19 21:56:00 CEST 2011
Wow nice!
That was the reason why my build failed, now it works!
My SHR image should finish building soon, as well.
Thank you!
On 19.10.2011 19:10, Klaus 'mrmoku' Kurzmann wrote:
> Hello all,
>
> sorry for doubly sending... First one was with wrong from and was
> awaiting moderator approval (which happened fast - thx Nikolaus :)
> Impatient as I am I already resent it with the correct address.
>
> To further explain - this patch is needed to build the 2.6.32 kernel
> (hw-validation branch on the goldelico git) with a very current
> toolchain as used by SHR / OpenEmbedded.
>
> A first gta04 SHR image is very close now :-)
>
> Happy hacking
>
> On Wed, 19 Oct 2011, mok at mnet-online.de wrote:
>
>> From: Klaus Kurzmann <mok at fluxnetz.de>
>
>> Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>
>> ---
>> arch/arm/kernel/sysfs_v7.c | 6 ++++--
>> 1 files changed, 4 insertions(+), 2 deletions(-)
>
>> diff --git a/arch/arm/kernel/sysfs_v7.c b/arch/arm/kernel/sysfs_v7.c
>> index 5ed32fb..96a3c16 100644
>> --- a/arch/arm/kernel/sysfs_v7.c
>> +++ b/arch/arm/kernel/sysfs_v7.c
>> @@ -76,7 +76,8 @@ static ssize_t aux_ctl_store(struct sys_device *dev,
>> asm ("mrc p15, 0, %0, c1, c0, 1" : "=r"(val));
>> SETBITS(val, 0xff8, new);
>> val &= ~2;
>> - asm ("mov r0, %0 \n\t"
>> + asm (".arch_extension sec\n\t"
>> + "mov r0, %0 \n\t"
>> "mov r12, #3 \n\t"
>> "smc #0 \n\t"
>> :: "r"(val) : "r0", "r12");
>> @@ -107,7 +108,8 @@ static ssize_t l2_aux_ctl_store(struct sys_device *dev,
>
>> asm ("mrc p15, 1, %0, c9, c0, 2" : "=r"(val));
>> SETBITS(val, 0xbc00000, new);
>> - asm ("mov r0, %0 \n\t"
>> + asm (".arch_extension sec\n\t"
>> + "mov r0, %0 \n\t"
>> "mov r12, #2 \n\t"
>> "smc #0 \n\t"
>> :: "r"(val) : "r0", "r12");
>> --
>> 1.7.7
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20111019/70e13bf0/attachment.bin>
More information about the Gta04-owner
mailing list