Re: [RFC PATCH] x86 single-step (TF) vs system calls & traps

From: Linus Torvalds
Date: Mon Jun 28 2004 - 22:47:53 EST




On Mon, 28 Jun 2004, Roland McGrath wrote:
>
> When you single-step into a trap instruction, you actually don't get a
> SIGTRAP until the instruction after the trap instruction has also executed.

Yes. This is documented Intel behaviour. It also guarantees that there is
forward progress in some strange circumstances, if I remember correctly.

And I refuse to make the fast-path slower just because of this. Not only
has Linux always worked like this, as far as I know all other x86 OS's
also tend to just do the Intel behaviour thing.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/