All of lore.kernel.org
 help / color / mirror / Atom feed
From: ChanJu Park <bestworld@samsung.com>
To: xen-devel@lists.xen.org
Cc: julien.grall@linaro.org, ian.campbell@citrix.com,
	stefano.stabellini@eu.citrix.com
Subject: [PATCH RFC 1/2] xen/arm: remove cast in mmu_init_secondary_cpu
Date: Tue, 17 Sep 2013 15:30:31 +0000 (GMT)	[thread overview]
Message-ID: <16203329.64401379431297711.JavaMail.weblogic@epml23> (raw)


At this moment, virt_to_maddr() is casted with 32 bit and this makes an error when 64 bit address is returned.
This cast needs to be removed. 


Singed-off-by: ChanJu Park 
Singed-off-by: Min Kang 
---
xen/arch/arm/mm.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
index 69c157a..bdfb7af 100644
--- a/xen/arch/arm/mm.c
+++ b/xen/arch/arm/mm.c
@@ -520,7 +520,7 @@ void __cpuinit mmu_init_secondary_cpu(void)
     uint64_t ttbr;

     /* Change to this CPU's pagetables */
-    ttbr = (uintptr_t)virt_to_maddr(THIS_CPU_PGTABLE);
+    ttbr = virt_to_maddr(THIS_CPU_PGTABLE);
     WRITE_TTBR(ttbr);

     /* From now on, no mapping may be both writable and executable. */
-- 
1.7.9.5

             reply	other threads:[~2013-09-17 15:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 15:30 ChanJu Park [this message]
2013-09-17 15:39 ` [PATCH RFC 1/2] xen/arm: remove cast in mmu_init_secondary_cpu Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2013-09-17 16:30 ChanJu Park
2013-09-17 16:37 ` Ian Campbell

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=16203329.64401379431297711.JavaMail.weblogic@epml23 \
    --to=bestworld@samsung.com \
    --cc=ian.campbell@citrix.com \
    --cc=julien.grall@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.