]> git.baikalelectronics.ru Git - kernel.git/commit
x86, traps: converge do_debug handlers
authorAlexander van Heukelum <heukelum@fastmail.fm>
Tue, 30 Sep 2008 16:41:37 +0000 (18:41 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Oct 2008 08:33:21 +0000 (10:33 +0200)
commit1740dfd5381181d3d86e89e9006766807d0bfed9
treeeb02df788007f136e20ec557009242992396c845
parent7ded96c49e8a757c087e24607b891730eefbca2d
x86, traps: converge do_debug handlers

Make the x86_64-version and the i386-version of do_debug
more similar.

 - introduce preempt_conditional_sti/cli to i386. The preempt-count
is now elevated during the trap handler, like on x86_64. It
does not run on a separate stack, however.
 - replace an open-coded "send_sigtrap"
 - copy some comments

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/traps_32.c
arch/x86/kernel/traps_64.c
include/asm-x86/ptrace.h