lkml.org 
[lkml]   [2012]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectsyscall descriptor table
From
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


\
 
 \ /
  Last update: 2012-04-05 23:59    [W:0.091 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site