]> git.karo-electronics.de Git - linux-beck.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)
commit3d2a71a596bd9c761c8487a2178e95f8a61da083
treeeb02df788007f136e20ec557009242992396c845
parente407d62088b7f61f38e1086062650c75a4f2757a
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