kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* System call question
@ 2011-06-10 19:35 Naman shekhar Mishra
  2011-06-11  7:31 ` Rajat Sharma
  0 siblings, 1 reply; 2+ messages in thread
From: Naman shekhar Mishra @ 2011-06-10 19:35 UTC (permalink / raw)
  To: kernelnewbies

Platform: x86 32 bit
system_call() ,afetr doing some checks, looks up in the sys_call_table and finds the correct address of the system call and jumps to it. i.e.:
call *sys_call_table(,%eax,4)

Can you please explain this syntax to me. I think 'call' is the processor instruction which works on a function name. 
* is used in gas syntax to denote that the address following it is to be used as the jumping address. Tell me if I m wrong so far.
() is used to index a memory location(GAS syntax again, I think). Please explain to me (,%eax,4). I have trouble understanding this syntax.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110611/d6571793/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-11  7:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-10 19:35 System call question Naman shekhar Mishra
2011-06-11  7:31 ` Rajat Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).