linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: shengyong1@huawei.com (Sheng Yong)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: asm: add ARM_BE8 wapper to BE8 code
Date: Tue, 16 Sep 2014 15:06:58 +0800	[thread overview]
Message-ID: <1410851219-13210-1-git-send-email-shengyong1@huawei.com> (raw)

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

                 reply	other threads:[~2014-09-16  7:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1410851219-13210-1-git-send-email-shengyong1@huawei.com \
    --to=shengyong1@huawei.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).