All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@debian.org>
To: Grant Grundler <grundler@dsl2.external.hp.com>
Cc: "Rafael E. Herrera" <raffo@neuronet.pitt.edu>,
	parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] EISA 100/10 add-on card causes kernel BUG
Date: Sat, 16 Mar 2002 21:39:38 +0000	[thread overview]
Message-ID: <20020316213938.B2179@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20020316184231.482C6482C@dsl2.external.hp.com>; from grundler@dsl2.external.hp.com on Sat, Mar 16, 2002 at 11:42:31AM -0700

On Sat, Mar 16, 2002 at 11:42:31AM -0700, Grant Grundler wrote:
> works on x86 arch. The right way to access user space data
> is via copy_from_user() or write asm code that explicitly
> references Space Registers (eg sr3).

Let me just explicitly discourage doing this (or, if you must, document
it in Documentation/parisc/registers).  Use of sr3 to access userspace
is subject to change and it'd be nice not to have to check every driver
for use.  It's bad enough that sba & ccio use sr1, but at least we found
those :-)

I cant imagine a good reason for using sr3.  copy_{to,from}_user are
portable and obvious.

-- 
Revolutions do not require corporate support.

  reply	other threads:[~2002-03-16 21:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-16  5:50 [parisc-linux] EISA 100/10 add-on card causes kernel BUG Rafael E. Herrera
2002-03-16 18:42 ` Grant Grundler
2002-03-16 21:39   ` Matthew Wilcox [this message]
2002-03-17  5:38     ` Grant Grundler
2002-03-17 13:43       ` Matthew Wilcox
2002-03-17 16:59         ` Grant Grundler
2002-03-22  3:16 ` [parisc-linux] EISA 100/10 add-on card on a 715/80 Rafael E. Herrera

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=20020316213938.B2179@parcelfarce.linux.theplanet.co.uk \
    --to=willy@debian.org \
    --cc=grundler@dsl2.external.hp.com \
    --cc=parisc-linux@lists.parisc-linux.org \
    --cc=raffo@neuronet.pitt.edu \
    /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.