All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Julien Grall <julien.grall@citrix.com>,
	ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com
Subject: [PATCH 2/4] xen/arm64: Document the register mapping aarch64 <-> aarch32
Date: Fri, 11 Dec 2015 15:28:21 +0000	[thread overview]
Message-ID: <1449847703-21252-3-git-send-email-julien.grall@citrix.com> (raw)
In-Reply-To: <1449847703-21252-1-git-send-email-julien.grall@citrix.com>

The mapping between aarch64 and aarch32 has not been chosen in random.
It's based on D1.20.1 in ARM DDI 0487A.d.

The section is not obvious to find in the spec, so make it clear for the
anyone else.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
---
 xen/include/asm-arm/arm64/processor.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/xen/include/asm-arm/arm64/processor.h b/xen/include/asm-arm/arm64/processor.h
index 3a9c0cd..fef35a5 100644
--- a/xen/include/asm-arm/arm64/processor.h
+++ b/xen/include/asm-arm/arm64/processor.h
@@ -15,7 +15,12 @@
 /* On stack VCPU state */
 struct cpu_user_regs
 {
-    /*         Aarch64       Aarch32 */
+    /*
+     * The mapping AArch64 <-> AArch32 is based on D1.20.1 in ARM DDI
+     * 0487A.d.
+     *
+     *         AArch64       AArch32
+     */
     __DECL_REG(x0,           r0/*_usr*/);
     __DECL_REG(x1,           r1/*_usr*/);
     __DECL_REG(x2,           r2/*_usr*/);
-- 
2.1.4

  parent reply	other threads:[~2015-12-11 15:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-11 15:28 [PATCH 0/4] xen/arm64: Emulate correctly the register {w, x}zr Julien Grall
2015-12-11 15:28 ` [PATCH 1/4] xen/arm: io: handle_read: Use a local variable to store dabt Julien Grall
2015-12-15 10:27   ` Ian Campbell
2015-12-11 15:28 ` Julien Grall [this message]
2015-12-15 10:33   ` [PATCH 2/4] xen/arm64: Document the register mapping aarch64 <-> aarch32 Ian Campbell
2015-12-11 15:28 ` [PATCH 3/4] xen/arm: vtimer: Introduce vtimer_emulate_sysreg{32, 64} Julien Grall
2015-12-15 10:38   ` Ian Campbell
2015-12-15 10:55     ` Julien Grall
2015-12-11 15:28 ` [PATCH 4/4] xen/arm64: Emulate correctly the register {w, x}zr Julien Grall
2015-12-15 11:10   ` Ian Campbell
2015-12-15 11:41     ` Julien Grall
2015-12-15 11:51       ` Ian Campbell
2015-12-17 17:17 ` [PATCH 0/4] " Julien Grall
2015-12-17 17:36   ` Ian Campbell
2016-01-05 14:54     ` 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=1449847703-21252-3-git-send-email-julien.grall@citrix.com \
    --to=julien.grall@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.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.