[lkml]   [1998]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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.


Petko Manolov,

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

 \ /
  Last update: 2005-03-22 13:44    [W:0.083 / U:1.348 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site