[parisc-linux] Re: uaccess ya patch

Randolph Chung Randolph Chung <randolph@tausq.org>
Tue, 26 Nov 2002 08:29:38 -0800


> Much more for info, here is another way I found to implement __put_?_asm64.

Joel, the __*_bad stuff is fine, but why do you want to rewrite the
asm64 functions as macros? you are also not doing it correctly:

> +#define __put_user_asm64(x, ptr)		\
> +	__asm__ __volatile__ (			\
> +		"\n1:\tstw\t%2,0(%%sr3,%1)\n"	\
> +		"2:\tstw\t%R2,4(%%sr3,%1)\n"	\
                  ^^^ this will cause very bad things to happen.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/