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

Alexander Shiyan shc_work at mail.ru
Sun Jul 15 02:00:45 EDT 2012


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 at mail.ru>
---
 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
 #else
-	ldr	r8, =PHYS_OFFSET		@ always constant in this case
+	ldr	r8, =PLAT_PHYS_OFFSET		@ always constant in this case
 #endif
 
 	/*
-- 
1.7.3.4




More information about the linux-arm-kernel mailing list