[Gta04-owner] [PATCH] fix build with current gcc/binutils

Klaus 'mrmoku' Kurzmann mok at mnet-online.de
Wed Oct 19 19:10:22 CEST 2011


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


-- 
Klaus 'mrmoku' Kurzmann


More information about the Gta04-owner mailing list