linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in proc-v7.S
@ 2011-01-13 16:51 Dave Martin
  2011-01-13 22:07 ` Nicolas Pitre
  2011-01-13 23:24 ` Russell King - ARM Linux
  0 siblings, 2 replies; 3+ messages in thread
From: Dave Martin @ 2011-01-13 16:51 UTC (permalink / raw)
  To: linux-arm-kernel

Commit

       d30e45e (ARM: pgtable: switch order of Linux vs hardware page tables)

introduced a pre-increment addressing offset which is out of range for
Thumb-2.  Thumb-2 only permits offsets <256.  So split the intruction in
two for Thumb-2.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
---
KernelVersion: next-20110112

 arch/arm/mm/proc-v7.S |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
index b49fab2..0c1172b 100644
--- a/arch/arm/mm/proc-v7.S
+++ b/arch/arm/mm/proc-v7.S
@@ -159,7 +159,9 @@ ENTRY(cpu_v7_set_pte_ext)
 	tstne	r1, #L_PTE_PRESENT
 	moveq	r3, #0
 
-	str	r3, [r0, #2048]!
+ ARM(	str	r3, [r0, #2048]! )
+ THUMB(	add	r0, r0, #2048 )
+ THUMB(	str	r3, [r0] )
 	mcr	p15, 0, r0, c7, c10, 1		@ flush_pte
 #endif
 	mov	pc, lr
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v2] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in proc-v7.S
  2011-01-13 16:51 [PATCH v2] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in proc-v7.S Dave Martin
@ 2011-01-13 22:07 ` Nicolas Pitre
  2011-01-13 23:24 ` Russell King - ARM Linux
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Pitre @ 2011-01-13 22:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 13 Jan 2011, Dave Martin wrote:

> Commit
> 
>        d30e45e (ARM: pgtable: switch order of Linux vs hardware page tables)
> 
> introduced a pre-increment addressing offset which is out of range for
> Thumb-2.  Thumb-2 only permits offsets <256.  So split the intruction in
> two for Thumb-2.
> 
> Signed-off-by: Dave Martin <dave.martin@linaro.org>

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>


> ---
> KernelVersion: next-20110112
> 
>  arch/arm/mm/proc-v7.S |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
> index b49fab2..0c1172b 100644
> --- a/arch/arm/mm/proc-v7.S
> +++ b/arch/arm/mm/proc-v7.S
> @@ -159,7 +159,9 @@ ENTRY(cpu_v7_set_pte_ext)
>  	tstne	r1, #L_PTE_PRESENT
>  	moveq	r3, #0
>  
> -	str	r3, [r0, #2048]!
> + ARM(	str	r3, [r0, #2048]! )
> + THUMB(	add	r0, r0, #2048 )
> + THUMB(	str	r3, [r0] )
>  	mcr	p15, 0, r0, c7, c10, 1		@ flush_pte
>  #endif
>  	mov	pc, lr
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v2] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in proc-v7.S
  2011-01-13 16:51 [PATCH v2] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in proc-v7.S Dave Martin
  2011-01-13 22:07 ` Nicolas Pitre
@ 2011-01-13 23:24 ` Russell King - ARM Linux
  1 sibling, 0 replies; 3+ messages in thread
From: Russell King - ARM Linux @ 2011-01-13 23:24 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jan 13, 2011 at 10:51:25AM -0600, Dave Martin wrote:
> Commit
> 
>        d30e45e (ARM: pgtable: switch order of Linux vs hardware page tables)
> 
> introduced a pre-increment addressing offset which is out of range for
> Thumb-2.  Thumb-2 only permits offsets <256.  So split the intruction in
> two for Thumb-2.

Ok, can you put it in the patch system please?  Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-13 23:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 16:51 [PATCH v2] ARM: Thumb-2: Fix out-of-range offset for Thumb-2 in proc-v7.S Dave Martin
2011-01-13 22:07 ` Nicolas Pitre
2011-01-13 23:24 ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).