Skip to content

Commit

Permalink
ARM: at91: pm_slowclock: fix the compilation error
Browse files Browse the repository at this point in the history
When compiling the kernel in thumb2 (CONFIG_THUMB2_KERNEL option activated), we
hit a compilation crash. The error message is listed below:

---8< -----
Error: cannot use register index with PC-relative addressing -- `str r0,.saved_lpr'
--->8----

Add the .arm directive in the assembly files related to power management.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Wenyou Yang authored and Nicolas Ferre committed Mar 11, 2015
1 parent 3440ef1 commit e7b848d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-at91/pm_slowclock.S
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ tmp2 .req r5

.text

.arm

/* void at91_slow_clock(void __iomem *pmc, void __iomem *sdramc,
* void __iomem *ramc1, int memctrl)
*/
Expand Down

0 comments on commit e7b848d

Please sign in to comment.