This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]