diff options
author | Roland McGrath <roland@redhat.com> | 2008-04-19 17:27:56 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 11:35:47 -0400 |
commit | 55928e37b29ba5557a5edc8ab679fe5191bc051d (patch) | |
tree | a59752fa1083243e6b2126cbb40b6a247ddcd89f /arch/x86/ia32/ia32_signal.c | |
parent | 8b9c5ff380aa4f10658171ed2b9abc1e0861b770 (diff) |
x86 signals: lift set_fs
This lifts the set_fs(USER_DS) call for signal handler setup out of the
three places copying the same code into the one place that calls them
all. There is no change in what it does.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/ia32/ia32_signal.c')
-rw-r--r-- | arch/x86/ia32/ia32_signal.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c index 0866104f684c..bbed3a26ce55 100644 --- a/arch/x86/ia32/ia32_signal.c +++ b/arch/x86/ia32/ia32_signal.c | |||
@@ -499,8 +499,6 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka, | |||
499 | regs->cs = __USER32_CS; | 499 | regs->cs = __USER32_CS; |
500 | regs->ss = __USER32_DS; | 500 | regs->ss = __USER32_DS; |
501 | 501 | ||
502 | set_fs(USER_DS); | ||
503 | |||
504 | #if DEBUG_SIG | 502 | #if DEBUG_SIG |
505 | printk(KERN_DEBUG "SIG deliver (%s:%d): sp=%p pc=%lx ra=%u\n", | 503 | printk(KERN_DEBUG "SIG deliver (%s:%d): sp=%p pc=%lx ra=%u\n", |
506 | current->comm, current->pid, frame, regs->ip, frame->pretcode); | 504 | current->comm, current->pid, frame, regs->ip, frame->pretcode); |
@@ -596,8 +594,6 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
596 | regs->cs = __USER32_CS; | 594 | regs->cs = __USER32_CS; |
597 | regs->ss = __USER32_DS; | 595 | regs->ss = __USER32_DS; |
598 | 596 | ||
599 | set_fs(USER_DS); | ||
600 | |||
601 | #if DEBUG_SIG | 597 | #if DEBUG_SIG |
602 | printk(KERN_DEBUG "SIG deliver (%s:%d): sp=%p pc=%lx ra=%u\n", | 598 | printk(KERN_DEBUG "SIG deliver (%s:%d): sp=%p pc=%lx ra=%u\n", |
603 | current->comm, current->pid, frame, regs->ip, frame->pretcode); | 599 | current->comm, current->pid, frame, regs->ip, frame->pretcode); |