[parisc-linux] EISA 100/10 add-on card causes kernel BUG

Matthew Wilcox willy@debian.org
Sat, 16 Mar 2002 21:39:38 +0000


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.