mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: Christoffer Dall <christofferdall@christofferdall.dk>
Cc: containers <containers@lists.linux-foundation.org>,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [C/R ARM v2][PATCH 1/3] ARM: Rudimentary syscall interfaces
Date: Wed, 28 Apr 2010 17:08:08 -0700 (PDT)	[thread overview]
Message-ID: <20100429000808.CFFBD7154@magilla.sf.frob.com> (raw)
In-Reply-To: Christoffer Dall's message of  Monday, 26 April 2010 17:43:41 -0400 <1272318223-28438-2-git-send-email-christofferdall@christofferdall.dk>

> + * syscalls.h - Linux syscall interfaces for ARM

s/syscalls/syscall/

> +static inline int get_swi_instruction(struct task_struct *task,
> +				      struct pt_regs *regs,
> +				      unsigned long *instr)
> +{

Why doesn't this just use access_process_vm?

> +/*
> + * This function essentially duplicates the logic from vector_swi in
> + * arch/arm/kernel/entry-common.S. However, that code is in the
> + * critical path for system calls and is hard to factor out without
> + * compromising performance. 
> + */

No clue about the ARM details, not reviewing that.  I think this is too big
to be an inline and should be in some arch/arm/kernel/*.c place instead.
Of course, if (config_aeabi && !config_oabi) is true at compile time, it's
not large at all.  So perhaps just move the compelx cases to a function
and leave the "Pure EABI" fork in the inline.


Thanks,
Roland

  reply	other threads:[~2010-04-29  0:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 21:43 [C/R ARM v2][PATCH 0/3] Linux Checkpoint-Restart - ARM port Christoffer Dall
2010-04-26 21:43 ` [C/R ARM v2][PATCH 1/3] ARM: Rudimentary syscall interfaces Christoffer Dall
2010-04-29  0:08   ` Roland McGrath [this message]
2010-04-26 22:36     ` [C/R ARM v2][PATCH] " Christoffer Dall
2010-04-26 21:43 ` [C/R ARM v2][PATCH 2/3] ARM: Add the eclone system call Christoffer Dall
2010-04-26 21:43 ` [C/R ARM v2][PATCH 3/3] c/r: ARM implementation of checkpoint/restart Christoffer Dall
2010-06-20 21:34 ` [C/R ARM v2][PATCH 0/3] Linux Checkpoint-Restart - ARM port Oren Laadan

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=20100429000808.CFFBD7154@magilla.sf.frob.com \
    --to=roland@redhat.com \
    --cc=christofferdall@christofferdall.dk \
    --cc=containers@lists.linux-foundation.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®