linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: asm: add ARM_BE8 wapper to BE8 code
@ 2014-09-16  7:06 Sheng Yong
  0 siblings, 0 replies; only message in thread
From: Sheng Yong @ 2014-09-16  7:06 UTC (permalink / raw)
  To: linux-arm-kernel

Use ARM_BE8 wrapper to code if CONFIG_CPU_BIG_ENDIAN is configured.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
---
 arch/arm/kernel/head.S |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
index 664eee8..35ef767 100644
--- a/arch/arm/kernel/head.S
+++ b/arch/arm/kernel/head.S
@@ -199,9 +199,7 @@ __create_page_tables:
 	bne	1b
 
 	add	r4, r4, #0x1000			@ point to the PMD tables
-#ifdef CONFIG_CPU_ENDIAN_BE8
-	add	r4, r4, #4			@ we only write the bottom word
-#endif
+ARM_BE8(add	r4, r4, #4)			@ we only write the bottom word
 #endif
 
 	ldr	r7, [r10, #PROCINFO_MM_MMUFLAGS] @ mm_mmuflags
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-16  7:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16  7:06 [PATCH] ARM: asm: add ARM_BE8 wapper to BE8 code Sheng Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).