Re: switch_to function

Alexander Viro (viro@math.psu.edu)
Sun, 5 Dec 1999 00:40:37 -0500 (EST)


On Sun, 5 Dec 1999, Hua Jiang wrote:

> Hi everyone:
>
> I read the linux kernel 2.2.13 source code,and find that in
> arch/i386/kernel/process.c switch_to function use inline asm 'ltr' to load
> the new task register which I thought can be loaded automatically when
> 'iretd','call',or 'ljmp' executed. anyone know why it still use 'ltr' here?

Because TSS gates are _slow_. Doing task switch by hands is much faster.

-
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.tux.org/lkml/