All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org
Subject: Re: [PATCH v3 14/15] xen: arm: document HCR bits.
Date: Fri, 19 Jul 2013 14:35:21 +0100	[thread overview]
Message-ID: <51E94099.7080303@linaro.org> (raw)
In-Reply-To: <1374234284-6304-14-git-send-email-ian.campbell@citrix.com>

On 07/19/2013 12:44 PM, Ian Campbell wrote:
> I was mostly interested in commenting the RW bit which is Register Width and
> not Read/Write as a reader might initially expect. Thought I might as well do
> the others...
> 
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

Thanks ! It will save time to understand each bit. :)

Acked-by: Julien Grall <julien.grall@linaro.org>
> ---
>  xen/include/asm-arm/processor.h |   56 +++++++++++++++++++-------------------
>  1 files changed, 28 insertions(+), 28 deletions(-)
> 
> diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h
> index f84ad99..c9d406c 100644
> --- a/xen/include/asm-arm/processor.h
> +++ b/xen/include/asm-arm/processor.h
> @@ -41,38 +41,38 @@
>  #define PSR_GUEST_INIT  (PSR_ABT_MASK|PSR_FIQ_MASK|PSR_IRQ_MASK)
>  
>  /* HCR Hyp Configuration Register */
> -#define HCR_RW          (1<<31) /* ARM64 only */
> -#define HCR_TGE         (1<<27)
> -#define HCR_TVM         (1<<26)
> -#define HCR_TTLB        (1<<25)
> -#define HCR_TPU         (1<<24)
> -#define HCR_TPC         (1<<23)
> -#define HCR_TSW         (1<<22)
> -#define HCR_TAC         (1<<21)
> -#define HCR_TIDCP       (1<<20)
> -#define HCR_TSC         (1<<19)
> -#define HCR_TID3        (1<<18)
> -#define HCR_TID2        (1<<17)
> -#define HCR_TID1        (1<<16)
> -#define HCR_TID0        (1<<15)
> -#define HCR_TWE         (1<<14)
> -#define HCR_TWI         (1<<13)
> -#define HCR_DC          (1<<12)
> -#define HCR_BSU_MASK    (3<<10)
> +#define HCR_RW          (1<<31) /* Register Width, ARM64 only */
> +#define HCR_TGE         (1<<27) /* Trap General Exceptions */
> +#define HCR_TVM         (1<<26) /* Trap Virtual Memory Controls */
> +#define HCR_TTLB        (1<<25) /* Trap TLB Maintenance Operations */
> +#define HCR_TPU         (1<<24) /* Trap Cache Maintenance Operations to PoU */
> +#define HCR_TPC         (1<<23) /* Trap Cache Maintenance Operations to PoC */
> +#define HCR_TSW         (1<<22) /* Trap Set/Way Cache Maintenance Operations */
> +#define HCR_TAC         (1<<21) /* Trap ACTLR Accesses */
> +#define HCR_TIDCP       (1<<20) /* Trap lockdown */
> +#define HCR_TSC         (1<<19) /* Trap SMC instruction */
> +#define HCR_TID3        (1<<18) /* Trap ID Register Group 3 */
> +#define HCR_TID2        (1<<17) /* Trap ID Register Group 2 */
> +#define HCR_TID1        (1<<16) /* Trap ID Register Group 1 */
> +#define HCR_TID0        (1<<15) /* Trap ID Register Group 0 */
> +#define HCR_TWE         (1<<14) /* Trap WFE instruction */
> +#define HCR_TWI         (1<<13) /* Trap WFI instruction */
> +#define HCR_DC          (1<<12) /* Default cacheable */
> +#define HCR_BSU_MASK    (3<<10) /* Barrier Shareability Upgrade */
>  #define HCR_BSU_NONE     (0<<10)
>  #define HCR_BSU_INNER    (1<<10)
>  #define HCR_BSU_OUTER    (2<<10)
>  #define HCR_BSU_FULL     (3<<10)
> -#define HCR_FB          (1<<9)
> -#define HCR_VA          (1<<8)
> -#define HCR_VI          (1<<7)
> -#define HCR_VF          (1<<6)
> -#define HCR_AMO         (1<<5)
> -#define HCR_IMO         (1<<4)
> -#define HCR_FMO         (1<<3)
> -#define HCR_PTW         (1<<2)
> -#define HCR_SWIO        (1<<1)
> -#define HCR_VM          (1<<0)
> +#define HCR_FB          (1<<9) /* Force Broadcast of Cache/BP/TLB operations */
> +#define HCR_VA          (1<<8) /* Virtual Asynchronous Abort */
> +#define HCR_VI          (1<<7) /* Virtual IRQ */
> +#define HCR_VF          (1<<6) /* Virtual FIQ */
> +#define HCR_AMO         (1<<5) /* Override CPSR.A */
> +#define HCR_IMO         (1<<4) /* Override CPSR.I */
> +#define HCR_FMO         (1<<3) /* Override CPSR.F */
> +#define HCR_PTW         (1<<2) /* Protected Walk */
> +#define HCR_SWIO        (1<<1) /* Set/Way Invalidation Override */
> +#define HCR_VM          (1<<0) /* Virtual MMU Enable */
>  
>  #define HSR_EC_WFI_WFE              0x01
>  #define HSR_EC_CP15_32              0x03
> 

  reply	other threads:[~2013-07-19 13:35 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-19 11:44 [PATCH v3 00/15] xen: arm: 64-bit dom0 kernel support Ian Campbell
2013-07-19 11:44 ` [PATCH v3 01/15] xen: arm: tweak arm64 stack frame layout Ian Campbell
2013-07-19 11:44 ` [PATCH v3 02/15] xen: arm: rename 32-bit specific zImage field offset constants Ian Campbell
2013-07-19 11:44 ` [PATCH v3 03/15] xen: arm: support for loading 64-bit zImage dom0 Ian Campbell
2013-07-19 13:30   ` Julien Grall
2013-07-19 13:39     ` Ian Campbell
2013-07-19 11:44 ` [PATCH v3 04/15] xen: arm: support building a 64-bit dom0 domain Ian Campbell
2013-07-19 12:59   ` Konrad Rzeszutek Wilk
2013-07-19 13:42     ` Ian Campbell
2013-07-19 11:44 ` [PATCH v3 05/15] xen: arm: precalculate VTTBR_EL2 for a domain when setting up its p2m Ian Campbell
2013-07-19 11:44 ` [PATCH v3 06/15] xen: arm: improve register dump output for 64-bit guest (and more generally too) Ian Campbell
2013-07-19 11:44 ` [PATCH v3 07/15] xen: arm: support dumping 64-bit guest stack Ian Campbell
2013-07-19 11:44 ` [PATCH v3 08/15] xen: arm: show less words in a line of a stack trace in 64-bit builds Ian Campbell
2013-07-19 11:44 ` [PATCH v3 09/15] xen: arm: Set EL1 register width in HCR_EL2 during context switch Ian Campbell
2013-07-22 10:44   ` Stefano Stabellini
2013-07-19 11:44 ` [PATCH v3 10/15] xen: arm: handle traps from 64-bit guests Ian Campbell
2013-07-24 11:30   ` Stefano Stabellini
2013-07-24 17:50     ` Ian Campbell
2013-07-19 11:44 ` [PATCH v3 11/15] xen: arm: handle hypercalls " Ian Campbell
2013-07-19 11:44 ` [PATCH v3 12/15] xen: arm: handle 64-bit system register access traps Ian Campbell
2013-07-19 11:44 ` [PATCH v3 13/15] xen: arm: align some comments Ian Campbell
2013-07-19 11:44 ` [PATCH v3 14/15] xen: arm: document HCR bits Ian Campbell
2013-07-19 13:35   ` Julien Grall [this message]
2013-07-19 11:44 ` [PATCH v3 15/15] xen: arm: Handle SMC from 64-bit guests Ian Campbell
2013-07-22 21:33 ` [PATCH v3 00/15] xen: arm: 64-bit dom0 kernel support 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=51E94099.7080303@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --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.