Skip to content

Commit

Permalink
ARM: shmobile: Insert align directives before 4 bytes data
Browse files Browse the repository at this point in the history
In thumb2 mode instructions are not align to 4 byte. This patch insert
align directives before putting 4 byte data.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Tetsuyuki Kobayashi authored and Simon Horman committed Jul 17, 2013
1 parent c1d7e2e commit 0b933cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-shmobile/headsmp-scu.S
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ ENTRY(shmobile_boot_scu)
ENDPROC(shmobile_boot_scu)

.text
.align 2
.globl shmobile_scu_base
shmobile_scu_base:
.space 4
1 change: 1 addition & 0 deletions arch/arm/mach-shmobile/headsmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ENTRY(shmobile_boot_vector)

ENDPROC(shmobile_boot_vector)

.align 2
.globl shmobile_boot_fn
shmobile_boot_fn:
1: .space 4
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-shmobile/sleep-sh7372.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
sh7372_resume_core_standby_sysc:
ldr pc, 1f

.align 2
.globl sh7372_cpu_resume
sh7372_cpu_resume:
1: .space 4
Expand Down Expand Up @@ -96,6 +97,7 @@ sh7372_do_idle_sysc:
1:
b 1b

.align 2
kernel_flush:
.word v7_flush_dcache_all
#endif

0 comments on commit 0b933cb

Please sign in to comment.