lkml.org 
[lkml]   [1998]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Differences between FreeBSD and Linux system call mechanism
    > Terry Lambert wrote:
    >
    > Linux uses a call-gate based kernel entry, which is TSS based, and

    It is not TSS baset, it is _trap_ based and uses int 0x80. Look
    at .../linux/arch/i386/kernel/traps.c and entry.S

    > therefore takes more CPU cycles on a contect switch than strictly
    > required. The FreeBSD mechanism for kernel entry (and subsequet
    > context switch) is threfore more efficient than that used by Linux.

    I don't know what is the BSD mechanism, but in Linux tasks are software
    switched since 2.1.1xx something. Read the note before __switch_to() in
    .../linux/arch/i386/kernel/process.c. I prefer _safe_ instead of _fast_
    task switching.

    Petkan

    --
    Petko Manolov, http://www.varel.bg/~petkan

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

    \
     
     \ /
      Last update: 2005-03-22 13:44    [W:0.022 / U:0.268 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site