[PATCH] Add 64-bit get_user and __get_user for i386

Linus Torvalds torvalds@osdl.org
Tue Apr 20 03:41:00 GMT 2004



On Tue, 20 Apr 2004, Jamie Lokier wrote:
>  
> By the way, is there a reason why put_user() is inline when get_user() isn't?

No. It would be good of you to fix put_user(), it should shrink the 
kernel. 

Only "__get_user()"/"__put_user()" should be inline, since those generally
result in just a single instruction. The range-checking versions are
better off out-of-line, I strongly suspect (but with the special calling
conventions, so that we don't unnecessarily clobber registers etc).

		Linus



More information about the Gcc mailing list