[PATCH] ARM: Fix compile breakage when CONFIG_XIP_KERNEL is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

arch/arm/kernel/head.o: In function `stext':
(.head.text+0x34): undefined reference to `PHYS_OFFSET'

This patch fix this problem by replacing PHYS_OFFSET to PLAT_PHYS_OFFSET.

Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx>
 arch/arm/kernel/head.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
index 835898e..8fb7502 100644
--- a/arch/arm/kernel/head.S
+++ b/arch/arm/kernel/head.S
@@ -113,7 +113,7 @@ ENTRY(stext)
 	sub	r4, r3, r4			@ (PHYS_OFFSET - PAGE_OFFSET)
 	add	r8, r8, r4			@ PHYS_OFFSET
-	ldr	r8, =PHYS_OFFSET		@ always constant in this case
+	ldr	r8, =PLAT_PHYS_OFFSET		@ always constant in this case

linux-arm-kernel mailing list

[Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [PDAs]     [Linux]     [Linux MIPS]     [Yosemite Campsites]     [Photos]

Add to Google Follow linuxarm on Twitter