diff --git a/[refs] b/[refs] index 7b240aebecc8..79c29f466963 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fa1e03eae2f38e7b38095301b043da9c274d2284 +refs/heads/master: 3f80c1adc900769f2070432419da3b5ddbf066fc diff --git a/trunk/arch/x86/kernel/step.c b/trunk/arch/x86/kernel/step.c index cb3c8bc2939a..3b70f20f21f9 100644 --- a/trunk/arch/x86/kernel/step.c +++ b/trunk/arch/x86/kernel/step.c @@ -5,8 +5,6 @@ #include #include -#define LDT_SEGMENT 4 - unsigned long convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs) { unsigned long addr, seg; @@ -20,7 +18,7 @@ unsigned long convert_rip_to_linear(struct task_struct *child, struct pt_regs *r * TLS segments are used for data, and the PNPBIOS * and APM bios ones we just ignore here. */ - if (seg & LDT_SEGMENT) { + if ((seg & SEGMENT_TI_MASK) == SEGMENT_LDT) { u32 *desc; unsigned long base;