[PATCH] i386/x86-64: rename is_at_popf(), add iret to tests and fix
commit2ade2920dcefdf5595c6380ebed131c964190855
authorChuck Ebbert <76306.1226@compuserve.com>
Tue, 26 Sep 2006 08:52:33 +0000 (26 10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:33 +0000 (26 10:52 +0200)
tree053542af977e5c402633771bb737f3d8a0efef33
parent91cd444e56ebe0c2acd9576a045d77490b26f607
[PATCH] i386/x86-64: rename is_at_popf(), add iret to tests and fix

is_at_popf() needs to test for the iret instruction as well as
popf.  So add that test and rename it to is_setting_trap_flag().

Also change max insn length from 16 to 15 to match reality.

LAHF / SAHF can't affect TF, so the comment in x86_64 is removed.

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/ptrace.c
arch/x86_64/kernel/ptrace.c