Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7b848d7 authored by Wenyou Yang's avatar Wenyou Yang Committed by Nicolas Ferre
Browse files

ARM: at91: pm_slowclock: fix the compilation error



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: default avatarWenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 3440ef16
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -70,6 +70,8 @@ tmp2 .req r5


	.text
	.text


	.arm

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