mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Vicente <vicencb@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 2/5] ARM: add/rename PSR bits to match linux names
Date: Sat, 13 Oct 2012 20:25:05 +0200	[thread overview]
Message-ID: <20121013182505.GB27665@pengutronix.de> (raw)
In-Reply-To: <1350137007-10135-3-git-send-email-vicencb@gmail.com>

On Sat, Oct 13, 2012 at 04:03:24PM +0200, Vicente wrote:
> 
> Signed-off-by: Vicente <vicencb@gmail.com>
> ---
>  arch/arm/cpu/exceptions.S     |  1 -
>  arch/arm/cpu/interrupts.c     |  6 ++---
>  arch/arm/include/asm/ptrace.h | 55 +++++++++++++++++++++++--------------------
>  3 files changed, 33 insertions(+), 29 deletions(-)
> 
>  /* Are the current registers suitable for user mode?
>   * (used to maintain security in signal handlers)
> @@ -102,13 +107,13 @@ struct pt_regs {
>  static inline int valid_user_regs(struct pt_regs *regs)
>  {
>  	if ((regs->ARM_cpsr & 0xf) == 0 &&
> -	    (regs->ARM_cpsr & (F_BIT|I_BIT)) == 0)
> +	    (regs->ARM_cpsr & (PSR_F_BIT|PSR_I_BIT)) == 0)
>  		return 1;
>  
>  	/*
>  	 * Force CPSR to something logical...
>  	 */
> -	regs->ARM_cpsr &= (CC_V_BIT|CC_C_BIT|CC_Z_BIT|CC_N_BIT|0x10);
> +	regs->ARM_cpsr &= (PSR_V_BIT|PSR_C_BIT|PSR_Z_BIT|PSR_N_BIT|0x10);

Since you are changing these lines anyway, could you add a whitespace
left and right to the operators to match our coding style?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 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:[~2012-10-13 18:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-13 14:03 [PATCH 0/5] archosg9: improve support for tablet Vicente
2012-10-13 14:03 ` [PATCH 1/5] ArchosG9: changed serial port and env Vicente
2012-10-13 14:03 ` [PATCH 2/5] ARM: add/rename PSR bits to match linux names Vicente
2012-10-13 18:25   ` Sascha Hauer [this message]
2012-10-13 14:03 ` [PATCH 3/5] ARM: ensure irqs are disabled at barebox exit Vicente
2012-10-14  8:57   ` Sascha Hauer
2012-10-13 14:03 ` [PATCH 4/5] uimage: improve transfer speed Vicente
2012-10-13 14:03 ` [PATCH 5/5] omap4_usbboot_fs: add benchmarking capabilities Vicente
2012-10-13 18:27   ` Sascha Hauer
2012-10-13 14:19 ` [PATCH 0/5] archosg9: improve support for tablet Jean-Christophe PLAGNIOL-VILLARD
2012-10-13 14:35   ` vj
2012-10-14  8:12     ` [SPAM] " Jean-Christophe PLAGNIOL-VILLARD

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=20121013182505.GB27665@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=vicencb@gmail.com \
    /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