aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_32.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-01-30 13:30:59 +0100
committerIngo Molnar <mingo@elte.hu>2008-01-30 13:30:59 +0100
commit0f5340933f9bacb403f49baaf8073320e3984841 (patch)
treed142192f7194c75b8ea6e4eaff0e33fbcf860c6c /arch/x86/kernel/signal_32.c
parentd277fb89dfb042deba04a8e765718cc8b3825e85 (diff)
downloadkernel_samsung_smdk4412-0f5340933f9bacb403f49baaf8073320e3984841.zip
kernel_samsung_smdk4412-0f5340933f9bacb403f49baaf8073320e3984841.tar.gz
kernel_samsung_smdk4412-0f5340933f9bacb403f49baaf8073320e3984841.tar.bz2
x86: x86-32 thread_struct.debugreg
This replaces the debugreg[7] member of thread_struct with individual members debugreg0, etc. This saves two words for the dummies 4 and 5, and harmonizes the code between 32 and 64. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r--arch/x86/kernel/signal_32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index 64cb3c0..2bf5c9a 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -605,8 +605,8 @@ static void fastcall do_signal(struct pt_regs *regs)
* have been cleared if the watchpoint triggered
* inside the kernel.
*/
- if (unlikely(current->thread.debugreg[7]))
- set_debugreg(current->thread.debugreg[7], 7);
+ if (unlikely(current->thread.debugreg7))
+ set_debugreg(current->thread.debugreg7, 7);
/* Whee! Actually deliver the signal. */
if (handle_signal(signr, &info, &ka, oldset, regs) == 0) {