mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] ARM: cpuinfo: print exception level
Date: Fri, 3 Jun 2022 08:50:48 +0200	[thread overview]
Message-ID: <20220603065048.GG1615@pengutronix.de> (raw)
In-Reply-To: <20220602102850.3421547-1-a.fatoum@pengutronix.de>

On Thu, Jun 02, 2022 at 12:28:50PM +0200, Ahmad Fatoum wrote:
> barebox boot on ARMv8 usually involves switching exception level, but
> nevertheless during bring up, it can be useful to query exception level
> from the command line. Thus add it to cpuinfo output. There's no
> straight equivalent for ARMv7, so we #ifdef it out for non-v8.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  arch/arm/cpu/cpuinfo.c | 4 ++++
>  1 file changed, 4 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/cpu/cpuinfo.c b/arch/arm/cpu/cpuinfo.c
> index 8a92432e904f..aea50e80d194 100644
> --- a/arch/arm/cpu/cpuinfo.c
> +++ b/arch/arm/cpu/cpuinfo.c
> @@ -230,6 +230,10 @@ static int do_cpuinfo(int argc, char *argv[])
>  			printf("core: %s r%up%u\n", part, major, minor);
>  	}
>  
> +#ifdef CONFIG_CPU_64v8
> +	printf("exception level: %u\n", current_el());
> +#endif
> +
>  	if (cache & (1 << 24)) {
>  		/* separate I/D cache */
>  		printf("I-cache: ");
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


      reply	other threads:[~2022-06-03  6:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-02 10:28 Ahmad Fatoum
2022-06-03  6:50 ` Sascha Hauer [this message]

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=20220603065048.GG1615@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@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