LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] kernel programming curiosity

[ILUG] kernel programming curiosity

Mark McLoughlin mark at skynet.ie
Sun Apr 22 15:59:58 IST 2001


On Sat, 21 Apr 2001, Fergal Daly wrote:

> The bit that's still really confusing me is where is gcc getting the capital
> X from, I have grepped all the .h and .c files of 2.2.17 and 2.2.19 and
> there is no mention of put_user_X, only put_user_x. Any idea what that's
> about?

I think the whole point is there is no put_user_X. So if you try and
do a put_user with something that's more the 4 bytes, it won't link.
If you look at the cpp output, it's the default branch

default: __asm__ __volatile__("call __put_user_" "X"

This doesn't work without optimising (-fthread-jumps, I think) turned
on because with this turned on all defunct branches of the switch get
optimised away so there are references to put_user_{1,2,4,X}. If you
do have it turned on, you're left with only a reference to the
put_user you need, and if that's put_user_X you're screwed....

Good Luck,
Mark.





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell