public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* syscall descriptor table
@ 2012-04-05 21:55 Xin Tong
  2012-04-06  8:24 ` Jiri Slaby
  0 siblings, 1 reply; 2+ messages in thread
From: Xin Tong @ 2012-04-05 21:55 UTC (permalink / raw)
  To: linux-kernel

Can anyone please describe to me how x86 syscall works ( i.e. how it
is dispatched to the correct function) on x86 ?

mov $1, %eax   ;; __NR_exit = 1
mov $42, %ebx  ;; status = 42
sysenter       ;; perform the syscall!

what does the sysenter instruction do ? what is the difference aganst int 0x80.

Thanks

Xin

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

end of thread, other threads:[~2012-04-06  8:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05 21:55 syscall descriptor table Xin Tong
2012-04-06  8:24 ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox