aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/step.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/step.c b/arch/x86/kernel/step.c
index cb3c8bc2939a..3b70f20f21f9 100644
--- a/arch/x86/kernel/step.c
+++ b/arch/x86/kernel/step.c
@@ -5,8 +5,6 @@
5#include <linux/mm.h> 5#include <linux/mm.h>
6#include <linux/ptrace.h> 6#include <linux/ptrace.h>
7 7
8#define LDT_SEGMENT 4
9
10unsigned long convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs) 8unsigned long convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs)
11{ 9{
12 unsigned long addr, seg; 10 unsigned long addr, seg;
@@ -20,7 +18,7 @@ unsigned long convert_rip_to_linear(struct task_struct *child, struct pt_regs *r
20 * TLS segments are used for data, and the PNPBIOS 18 * TLS segments are used for data, and the PNPBIOS
21 * and APM bios ones we just ignore here. 19 * and APM bios ones we just ignore here.
22 */ 20 */
23 if (seg & LDT_SEGMENT) { 21 if ((seg & SEGMENT_TI_MASK) == SEGMENT_LDT) {
24 u32 *desc; 22 u32 *desc;
25 unsigned long base; 23 unsigned long base;
26 24