[lkml]   [2012]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: syscall descriptor table
    On 04/05/2012 11:55 PM, Xin Tong wrote:
    > 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.

    Please refer to some processor manual. For example: Intel 64 and IA-32
    Architectures Software Developer’s Manual. For the entry point see
    ia32_sysenter_target in arch/x86/kernel/entry_32.S for x86_32 or
    arch/x86/ia32/ia32entry.S for x86_64 with 32-bit binary.

    suse labs

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2012-04-06 10:27    [W:0.020 / U:22.672 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site