[PATCH] x86_64: Move int 3 handler to debug stack and allow to increase it.
authorJan Beulich <jbeulich@novell.com>
Wed, 11 Jan 2006 21:43:00 +0000 (22:43 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 03:01:13 +0000 (19:01 -0800)
commitb556b35e98ad2b9174a7a623d152cdf412d1a999
tree10f99d70e719fba811dee85d2f3a82b26d7a4ce8
parented8388a5d9db0445322f86ee8381b0f04a2057ee
[PATCH] x86_64: Move int 3 handler to debug stack and allow to increase it.

This
- switches the INT3 handler to run on an IST stack (to cope with
  breakpoints set by a kernel debugger on places where the kernel's
  %gs base hasn't been set up, yet); the IST stack used is shared with
  the INT1 handler's
[AK: this also allows setting a kprobe on the interrupt/exception entry
points]
- allows nesting of INT1/INT3 handlers so that one can, with a kernel
  debugger, debug (at least) the user-mode portions of the INT1/INT3
  handling; the nesting isn't actively enabled here since a kernel-
  debugger-free kernel doesn't need it

Signed-Off-By: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/asm-offsets.c
arch/x86_64/kernel/entry.S
arch/x86_64/kernel/setup64.c
arch/x86_64/kernel/traps.c
include/asm-x86_64/desc.h
include/asm-x86_64/page.h
include/asm-x86_64/pda.h
include/asm-x86_64/processor.h