* [PATCH] ARM: Exynos: Fix build error with thumb2
@ 2015-03-16 17:38 ` Andrey Konovalov
0 siblings, 0 replies; 12+ messages in thread
From: Andrey Konovalov @ 2015-03-16 17:38 UTC (permalink / raw)
To: linux-arm-kernel, Kukjin Kim; +Cc: linux-samsung-soc, linaro-kernel
Add non-global symbols to avoid build failure in thumb2 mode.
Exact the same issue and the fix as in [1]; just the variables are different.
[1] http://lists.linaro.org/pipermail/linaro-kernel/2014-June/015227.html
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
---
arch/arm/mach-exynos/sleep.S | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
index 31d2583..73f7fde 100644
--- a/arch/arm/mach-exynos/sleep.S
+++ b/arch/arm/mach-exynos/sleep.S
@@ -69,9 +69,9 @@ ENTRY(exynos_cpu_resume_ns)
cmp r0, r1
bne skip_cp15
- adr r0, cp15_save_power
+ adr r0, .Lcp15_save_power
ldr r1, [r0]
- adr r0, cp15_save_diag
+ adr r0, .Lcp15_save_diag
ldr r2, [r0]
mov r0, #SMC_CMD_C15RESUME
dsb
@@ -118,9 +118,11 @@ skip_l2x0:
skip_cp15:
b cpu_resume
ENDPROC(exynos_cpu_resume_ns)
+.Lcp15_save_diag:
.globl cp15_save_diag
cp15_save_diag:
.long 0 @ cp15 diagnostic
+.Lcp15_save_power:
.globl cp15_save_power
cp15_save_power:
.long 0 @ cp15 power control
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH] ARM: Exynos: Fix build error with thumb2
@ 2015-03-16 17:38 ` Andrey Konovalov
0 siblings, 0 replies; 12+ messages in thread
From: Andrey Konovalov @ 2015-03-16 17:38 UTC (permalink / raw)
To: linux-arm-kernel
Add non-global symbols to avoid build failure in thumb2 mode.
Exact the same issue and the fix as in [1]; just the variables are different.
[1] http://lists.linaro.org/pipermail/linaro-kernel/2014-June/015227.html
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
---
arch/arm/mach-exynos/sleep.S | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
index 31d2583..73f7fde 100644
--- a/arch/arm/mach-exynos/sleep.S
+++ b/arch/arm/mach-exynos/sleep.S
@@ -69,9 +69,9 @@ ENTRY(exynos_cpu_resume_ns)
cmp r0, r1
bne skip_cp15
- adr r0, cp15_save_power
+ adr r0, .Lcp15_save_power
ldr r1, [r0]
- adr r0, cp15_save_diag
+ adr r0, .Lcp15_save_diag
ldr r2, [r0]
mov r0, #SMC_CMD_C15RESUME
dsb
@@ -118,9 +118,11 @@ skip_l2x0:
skip_cp15:
b cpu_resume
ENDPROC(exynos_cpu_resume_ns)
+.Lcp15_save_diag:
.globl cp15_save_diag
cp15_save_diag:
.long 0 @ cp15 diagnostic
+.Lcp15_save_power:
.globl cp15_save_power
cp15_save_power:
.long 0 @ cp15 power control
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] ARM: Exynos : Fix build error with thumb2
2014-06-04 8:07 ` Santosh Shukla
@ 2014-06-11 15:13 ` Kukjin Kim
-1 siblings, 0 replies; 12+ messages in thread
From: Kukjin Kim @ 2014-06-11 15:13 UTC (permalink / raw)
To: Santosh Shukla
Cc: Dave Martin, Kukjin Kim, Arnd Bergmann, linux, Catalin Marinas,
linux-samsung-soc, Viresh Kumar, t.figa, linaro-kernel,
Thomas Abraham, linux-arm-kernel
On 06/04/14 17:07, Santosh Shukla wrote:
> On 2 June 2014 15:40, Dave Martin<Dave.Martin@arm.com> wrote:
>> On Mon, May 26, 2014 at 09:23:45PM +0530, Santosh Shukla wrote:
>>> From: santosh shukla<santosh.shukla@linaro.org>
>>>
>>> Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
>>>
>>> IIUC, arm assembler fail to load value of "global" variable
>>> l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
>>> .Ll2x0_regs_phys solves the build break issue.
>>>
>>> arch/arm/mach-exynos/sleep.S: Assembler messages:
>>> arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
>>> calculation (value = 0x00000004)
>>>
>>> fix inspired from [1]
>>>
>>> [1] https://lkml.org/lkml/2010/3/31/235
>>>
>>> Signed-off-by: santosh shukla<santosh.shukla@linaro.org>
>>
>> Reviewed-by: Dave Martin<Dave.Martin@arm.com>
>>
>
> Thanks.
>
> Hi Kukjin, if this patch ok with you then can you pick it up.
>
Sure, I've applied this into fixes for 3.16.
Thanks,
Kukjin
>> The binutils folks insist that this is not a bug in gas. (I disagreed, but
>> it's a grey area.) This is the established pattern for working round this
>> issue -- looks fine to me.
>>
>> Cheers
>> ---Dave
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: Exynos : Fix build error with thumb2
@ 2014-06-11 15:13 ` Kukjin Kim
0 siblings, 0 replies; 12+ messages in thread
From: Kukjin Kim @ 2014-06-11 15:13 UTC (permalink / raw)
To: linux-arm-kernel
On 06/04/14 17:07, Santosh Shukla wrote:
> On 2 June 2014 15:40, Dave Martin<Dave.Martin@arm.com> wrote:
>> On Mon, May 26, 2014 at 09:23:45PM +0530, Santosh Shukla wrote:
>>> From: santosh shukla<santosh.shukla@linaro.org>
>>>
>>> Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
>>>
>>> IIUC, arm assembler fail to load value of "global" variable
>>> l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
>>> .Ll2x0_regs_phys solves the build break issue.
>>>
>>> arch/arm/mach-exynos/sleep.S: Assembler messages:
>>> arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
>>> calculation (value = 0x00000004)
>>>
>>> fix inspired from [1]
>>>
>>> [1] https://lkml.org/lkml/2010/3/31/235
>>>
>>> Signed-off-by: santosh shukla<santosh.shukla@linaro.org>
>>
>> Reviewed-by: Dave Martin<Dave.Martin@arm.com>
>>
>
> Thanks.
>
> Hi Kukjin, if this patch ok with you then can you pick it up.
>
Sure, I've applied this into fixes for 3.16.
Thanks,
Kukjin
>> The binutils folks insist that this is not a bug in gas. (I disagreed, but
>> it's a grey area.) This is the established pattern for working round this
>> issue -- looks fine to me.
>>
>> Cheers
>> ---Dave
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] ARM: Exynos : Fix build error with thumb2
2014-06-02 10:10 ` Dave Martin
@ 2014-06-04 8:07 ` Santosh Shukla
-1 siblings, 0 replies; 12+ messages in thread
From: Santosh Shukla @ 2014-06-04 8:07 UTC (permalink / raw)
To: Dave Martin
Cc: Kukjin Kim, Arnd Bergmann, linux, Catalin Marinas,
linux-samsung-soc, Viresh Kumar, t.figa, linaro-kernel,
Thomas Abraham, linux-arm-kernel
On 2 June 2014 15:40, Dave Martin <Dave.Martin@arm.com> wrote:
> On Mon, May 26, 2014 at 09:23:45PM +0530, Santosh Shukla wrote:
>> From: santosh shukla <santosh.shukla@linaro.org>
>>
>> Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
>>
>> IIUC, arm assembler fail to load value of "global" variable
>> l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
>> .Ll2x0_regs_phys solves the build break issue.
>>
>> arch/arm/mach-exynos/sleep.S: Assembler messages:
>> arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
>> calculation (value = 0x00000004)
>>
>> fix inspired from [1]
>>
>> [1] https://lkml.org/lkml/2010/3/31/235
>>
>> Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
>
> Reviewed-by: Dave Martin <Dave.Martin@arm.com>
>
Thanks.
Hi Kukjin, if this patch ok with you then can you pick it up.
> The binutils folks insist that this is not a bug in gas. (I disagreed, but
> it's a grey area.) This is the established pattern for working round this
> issue -- looks fine to me.
>
> Cheers
> ---Dave
>
>
>> ---
>> arch/arm/mach-exynos/sleep.S | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
>> index a2613e9..dc8c6b6 100644
>> --- a/arch/arm/mach-exynos/sleep.S
>> +++ b/arch/arm/mach-exynos/sleep.S
>> @@ -54,7 +54,7 @@ ENTRY(exynos_cpu_resume)
>> ldr r1, =CPU_CORTEX_A9
>> cmp r0, r1
>> bne skip_l2_resume
>> - adr r0, l2x0_regs_phys
>> + adr r0, .Ll2x0_regs_phys
>> ldr r0, [r0]
>> cmp r0, #0
>> beq skip_l2_resume
>> @@ -79,6 +79,8 @@ skip_l2_resume:
>> b cpu_resume
>> ENDPROC(exynos_cpu_resume)
>> #ifdef CONFIG_CACHE_L2X0
>> +
>> +.Ll2x0_regs_phys:
>> .globl l2x0_regs_phys
>> l2x0_regs_phys:
>> .long 0
>> --
>> 1.7.9.5
>>
>>
>> _______________________________________________
>> linaro-kernel mailing list
>> linaro-kernel@lists.linaro.org
>> http://lists.linaro.org/mailman/listinfo/linaro-kernel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: Exynos : Fix build error with thumb2
@ 2014-06-04 8:07 ` Santosh Shukla
0 siblings, 0 replies; 12+ messages in thread
From: Santosh Shukla @ 2014-06-04 8:07 UTC (permalink / raw)
To: linux-arm-kernel
On 2 June 2014 15:40, Dave Martin <Dave.Martin@arm.com> wrote:
> On Mon, May 26, 2014 at 09:23:45PM +0530, Santosh Shukla wrote:
>> From: santosh shukla <santosh.shukla@linaro.org>
>>
>> Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
>>
>> IIUC, arm assembler fail to load value of "global" variable
>> l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
>> .Ll2x0_regs_phys solves the build break issue.
>>
>> arch/arm/mach-exynos/sleep.S: Assembler messages:
>> arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
>> calculation (value = 0x00000004)
>>
>> fix inspired from [1]
>>
>> [1] https://lkml.org/lkml/2010/3/31/235
>>
>> Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
>
> Reviewed-by: Dave Martin <Dave.Martin@arm.com>
>
Thanks.
Hi Kukjin, if this patch ok with you then can you pick it up.
> The binutils folks insist that this is not a bug in gas. (I disagreed, but
> it's a grey area.) This is the established pattern for working round this
> issue -- looks fine to me.
>
> Cheers
> ---Dave
>
>
>> ---
>> arch/arm/mach-exynos/sleep.S | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
>> index a2613e9..dc8c6b6 100644
>> --- a/arch/arm/mach-exynos/sleep.S
>> +++ b/arch/arm/mach-exynos/sleep.S
>> @@ -54,7 +54,7 @@ ENTRY(exynos_cpu_resume)
>> ldr r1, =CPU_CORTEX_A9
>> cmp r0, r1
>> bne skip_l2_resume
>> - adr r0, l2x0_regs_phys
>> + adr r0, .Ll2x0_regs_phys
>> ldr r0, [r0]
>> cmp r0, #0
>> beq skip_l2_resume
>> @@ -79,6 +79,8 @@ skip_l2_resume:
>> b cpu_resume
>> ENDPROC(exynos_cpu_resume)
>> #ifdef CONFIG_CACHE_L2X0
>> +
>> +.Ll2x0_regs_phys:
>> .globl l2x0_regs_phys
>> l2x0_regs_phys:
>> .long 0
>> --
>> 1.7.9.5
>>
>>
>> _______________________________________________
>> linaro-kernel mailing list
>> linaro-kernel at lists.linaro.org
>> http://lists.linaro.org/mailman/listinfo/linaro-kernel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] ARM: Exynos : Fix build error with thumb2
2014-05-26 15:53 ` Santosh Shukla
@ 2014-06-02 10:10 ` Dave Martin
-1 siblings, 0 replies; 12+ messages in thread
From: Dave Martin @ 2014-06-02 10:10 UTC (permalink / raw)
To: Santosh Shukla
Cc: kgene.kim, arnd, linux, catalin.marinas, linux-samsung-soc,
viresh.kumar, t.figa, linaro-kernel, thomas.abraham,
linux-arm-kernel
On Mon, May 26, 2014 at 09:23:45PM +0530, Santosh Shukla wrote:
> From: santosh shukla <santosh.shukla@linaro.org>
>
> Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
>
> IIUC, arm assembler fail to load value of "global" variable
> l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
> .Ll2x0_regs_phys solves the build break issue.
>
> arch/arm/mach-exynos/sleep.S: Assembler messages:
> arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
> calculation (value = 0x00000004)
>
> fix inspired from [1]
>
> [1] https://lkml.org/lkml/2010/3/31/235
>
> Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
The binutils folks insist that this is not a bug in gas. (I disagreed, but
it's a grey area.) This is the established pattern for working round this
issue -- looks fine to me.
Cheers
---Dave
> ---
> arch/arm/mach-exynos/sleep.S | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
> index a2613e9..dc8c6b6 100644
> --- a/arch/arm/mach-exynos/sleep.S
> +++ b/arch/arm/mach-exynos/sleep.S
> @@ -54,7 +54,7 @@ ENTRY(exynos_cpu_resume)
> ldr r1, =CPU_CORTEX_A9
> cmp r0, r1
> bne skip_l2_resume
> - adr r0, l2x0_regs_phys
> + adr r0, .Ll2x0_regs_phys
> ldr r0, [r0]
> cmp r0, #0
> beq skip_l2_resume
> @@ -79,6 +79,8 @@ skip_l2_resume:
> b cpu_resume
> ENDPROC(exynos_cpu_resume)
> #ifdef CONFIG_CACHE_L2X0
> +
> +.Ll2x0_regs_phys:
> .globl l2x0_regs_phys
> l2x0_regs_phys:
> .long 0
> --
> 1.7.9.5
>
>
> _______________________________________________
> linaro-kernel mailing list
> linaro-kernel@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-kernel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: Exynos : Fix build error with thumb2
@ 2014-06-02 10:10 ` Dave Martin
0 siblings, 0 replies; 12+ messages in thread
From: Dave Martin @ 2014-06-02 10:10 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, May 26, 2014 at 09:23:45PM +0530, Santosh Shukla wrote:
> From: santosh shukla <santosh.shukla@linaro.org>
>
> Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
>
> IIUC, arm assembler fail to load value of "global" variable
> l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
> .Ll2x0_regs_phys solves the build break issue.
>
> arch/arm/mach-exynos/sleep.S: Assembler messages:
> arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
> calculation (value = 0x00000004)
>
> fix inspired from [1]
>
> [1] https://lkml.org/lkml/2010/3/31/235
>
> Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
The binutils folks insist that this is not a bug in gas. (I disagreed, but
it's a grey area.) This is the established pattern for working round this
issue -- looks fine to me.
Cheers
---Dave
> ---
> arch/arm/mach-exynos/sleep.S | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
> index a2613e9..dc8c6b6 100644
> --- a/arch/arm/mach-exynos/sleep.S
> +++ b/arch/arm/mach-exynos/sleep.S
> @@ -54,7 +54,7 @@ ENTRY(exynos_cpu_resume)
> ldr r1, =CPU_CORTEX_A9
> cmp r0, r1
> bne skip_l2_resume
> - adr r0, l2x0_regs_phys
> + adr r0, .Ll2x0_regs_phys
> ldr r0, [r0]
> cmp r0, #0
> beq skip_l2_resume
> @@ -79,6 +79,8 @@ skip_l2_resume:
> b cpu_resume
> ENDPROC(exynos_cpu_resume)
> #ifdef CONFIG_CACHE_L2X0
> +
> +.Ll2x0_regs_phys:
> .globl l2x0_regs_phys
> l2x0_regs_phys:
> .long 0
> --
> 1.7.9.5
>
>
> _______________________________________________
> linaro-kernel mailing list
> linaro-kernel at lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-kernel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] ARM: Exynos : Fix build error with thumb2
2014-05-26 15:53 ` Santosh Shukla
@ 2014-05-28 14:03 ` Santosh Shukla
-1 siblings, 0 replies; 12+ messages in thread
From: Santosh Shukla @ 2014-05-28 14:03 UTC (permalink / raw)
To: Kukjin Kim, Arnd Bergmann, linux, Catalin Marinas
Cc: Thomas Abraham, t.figa, linux-samsung-soc, linaro-kernel,
Viresh Kumar, linux-arm-kernel, santosh shukla
ping!
On 26 May 2014 21:23, Santosh Shukla <santosh.shukla@linaro.org> wrote:
> From: santosh shukla <santosh.shukla@linaro.org>
>
> Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
>
> IIUC, arm assembler fail to load value of "global" variable
> l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
> .Ll2x0_regs_phys solves the build break issue.
>
> arch/arm/mach-exynos/sleep.S: Assembler messages:
> arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
> calculation (value = 0x00000004)
>
> fix inspired from [1]
>
> [1] https://lkml.org/lkml/2010/3/31/235
>
> Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
> ---
> arch/arm/mach-exynos/sleep.S | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
> index a2613e9..dc8c6b6 100644
> --- a/arch/arm/mach-exynos/sleep.S
> +++ b/arch/arm/mach-exynos/sleep.S
> @@ -54,7 +54,7 @@ ENTRY(exynos_cpu_resume)
> ldr r1, =CPU_CORTEX_A9
> cmp r0, r1
> bne skip_l2_resume
> - adr r0, l2x0_regs_phys
> + adr r0, .Ll2x0_regs_phys
> ldr r0, [r0]
> cmp r0, #0
> beq skip_l2_resume
> @@ -79,6 +79,8 @@ skip_l2_resume:
> b cpu_resume
> ENDPROC(exynos_cpu_resume)
> #ifdef CONFIG_CACHE_L2X0
> +
> +.Ll2x0_regs_phys:
> .globl l2x0_regs_phys
> l2x0_regs_phys:
> .long 0
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: Exynos : Fix build error with thumb2
@ 2014-05-28 14:03 ` Santosh Shukla
0 siblings, 0 replies; 12+ messages in thread
From: Santosh Shukla @ 2014-05-28 14:03 UTC (permalink / raw)
To: linux-arm-kernel
ping!
On 26 May 2014 21:23, Santosh Shukla <santosh.shukla@linaro.org> wrote:
> From: santosh shukla <santosh.shukla@linaro.org>
>
> Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
>
> IIUC, arm assembler fail to load value of "global" variable
> l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
> .Ll2x0_regs_phys solves the build break issue.
>
> arch/arm/mach-exynos/sleep.S: Assembler messages:
> arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
> calculation (value = 0x00000004)
>
> fix inspired from [1]
>
> [1] https://lkml.org/lkml/2010/3/31/235
>
> Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
> ---
> arch/arm/mach-exynos/sleep.S | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
> index a2613e9..dc8c6b6 100644
> --- a/arch/arm/mach-exynos/sleep.S
> +++ b/arch/arm/mach-exynos/sleep.S
> @@ -54,7 +54,7 @@ ENTRY(exynos_cpu_resume)
> ldr r1, =CPU_CORTEX_A9
> cmp r0, r1
> bne skip_l2_resume
> - adr r0, l2x0_regs_phys
> + adr r0, .Ll2x0_regs_phys
> ldr r0, [r0]
> cmp r0, #0
> beq skip_l2_resume
> @@ -79,6 +79,8 @@ skip_l2_resume:
> b cpu_resume
> ENDPROC(exynos_cpu_resume)
> #ifdef CONFIG_CACHE_L2X0
> +
> +.Ll2x0_regs_phys:
> .globl l2x0_regs_phys
> l2x0_regs_phys:
> .long 0
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH] ARM: Exynos : Fix build error with thumb2
@ 2014-05-26 15:53 ` Santosh Shukla
0 siblings, 0 replies; 12+ messages in thread
From: Santosh Shukla @ 2014-05-26 15:53 UTC (permalink / raw)
To: kgene.kim, arnd, linux, catalin.marinas
Cc: thomas.abraham, t.figa, linux-samsung-soc, linaro-kernel,
viresh.kumar, linux-arm-kernel, santosh shukla
From: santosh shukla <santosh.shukla@linaro.org>
Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
IIUC, arm assembler fail to load value of "global" variable
l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
.Ll2x0_regs_phys solves the build break issue.
arch/arm/mach-exynos/sleep.S: Assembler messages:
arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
calculation (value = 0x00000004)
fix inspired from [1]
[1] https://lkml.org/lkml/2010/3/31/235
Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
---
arch/arm/mach-exynos/sleep.S | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
index a2613e9..dc8c6b6 100644
--- a/arch/arm/mach-exynos/sleep.S
+++ b/arch/arm/mach-exynos/sleep.S
@@ -54,7 +54,7 @@ ENTRY(exynos_cpu_resume)
ldr r1, =CPU_CORTEX_A9
cmp r0, r1
bne skip_l2_resume
- adr r0, l2x0_regs_phys
+ adr r0, .Ll2x0_regs_phys
ldr r0, [r0]
cmp r0, #0
beq skip_l2_resume
@@ -79,6 +79,8 @@ skip_l2_resume:
b cpu_resume
ENDPROC(exynos_cpu_resume)
#ifdef CONFIG_CACHE_L2X0
+
+.Ll2x0_regs_phys:
.globl l2x0_regs_phys
l2x0_regs_phys:
.long 0
--
1.7.9.5
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH] ARM: Exynos : Fix build error with thumb2
@ 2014-05-26 15:53 ` Santosh Shukla
0 siblings, 0 replies; 12+ messages in thread
From: Santosh Shukla @ 2014-05-26 15:53 UTC (permalink / raw)
To: linux-arm-kernel
From: santosh shukla <santosh.shukla@linaro.org>
Add non-global symbol .LLl2x0_regs_phys to avoid build break in thumb2 mode.
IIUC, arm assembler fail to load value of "global" variable
l2xo_regs_phys for thum2 mode and wrapping it in non-global symbol like
.Ll2x0_regs_phys solves the build break issue.
arch/arm/mach-exynos/sleep.S: Assembler messages:
arch/arm/mach-exynos/sleep.S:57: Error: invalid immediate for address
calculation (value = 0x00000004)
fix inspired from [1]
[1] https://lkml.org/lkml/2010/3/31/235
Signed-off-by: santosh shukla <santosh.shukla@linaro.org>
---
arch/arm/mach-exynos/sleep.S | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-exynos/sleep.S b/arch/arm/mach-exynos/sleep.S
index a2613e9..dc8c6b6 100644
--- a/arch/arm/mach-exynos/sleep.S
+++ b/arch/arm/mach-exynos/sleep.S
@@ -54,7 +54,7 @@ ENTRY(exynos_cpu_resume)
ldr r1, =CPU_CORTEX_A9
cmp r0, r1
bne skip_l2_resume
- adr r0, l2x0_regs_phys
+ adr r0, .Ll2x0_regs_phys
ldr r0, [r0]
cmp r0, #0
beq skip_l2_resume
@@ -79,6 +79,8 @@ skip_l2_resume:
b cpu_resume
ENDPROC(exynos_cpu_resume)
#ifdef CONFIG_CACHE_L2X0
+
+.Ll2x0_regs_phys:
.globl l2x0_regs_phys
l2x0_regs_phys:
.long 0
--
1.7.9.5
^ permalink raw reply related [flat|nested] 12+ messages in thread
end of thread, other threads:[~2015-03-16 17:38 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-16 17:38 [PATCH] ARM: Exynos: Fix build error with thumb2 Andrey Konovalov
2015-03-16 17:38 ` Andrey Konovalov
-- strict thread matches above, loose matches on Subject: below --
2014-05-26 15:53 [PATCH] ARM: Exynos : " Santosh Shukla
2014-05-26 15:53 ` Santosh Shukla
2014-05-28 14:03 ` Santosh Shukla
2014-05-28 14:03 ` Santosh Shukla
2014-06-02 10:10 ` Dave Martin
2014-06-02 10:10 ` Dave Martin
2014-06-04 8:07 ` Santosh Shukla
2014-06-04 8:07 ` Santosh Shukla
2014-06-11 15:13 ` Kukjin Kim
2014-06-11 15:13 ` Kukjin Kim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.