1 diff -urN linux.orig/arch/i386/kernel/entry.S linux/arch/i386/kernel/entry.S
2 --- linux.orig/arch/i386/kernel/entry.S Tue May 21 01:32:34 2002
3 +++ linux/arch/i386/kernel/entry.S Thu Nov 14 21:39:36 2002
15 movl CS(%esp),%edx # this is eip..
16 movl EFLAGS(%esp),%ecx # and this is cs..
17 movl %eax,EFLAGS(%esp) #
18 + andl $~(NT_MASK|TF_MASK|DF_MASK), %eax
21 movl %edx,EIP(%esp) # Now we move them to their "normal" places
25 pushl $ SYMBOL_NAME(do_divide_error)
29 + andl $~(NT_MASK|TF_MASK|DF_MASK), (%esp)
40 movl ORIG_EAX(%esp), %esi # get the error code
41 movl ES(%esp), %edi # get the function address
42 diff -urN linux.orig/arch/i386/kernel/traps.c linux/arch/i386/kernel/traps.c
43 --- linux.orig/arch/i386/kernel/traps.c Thu Nov 14 21:19:40 2002
44 +++ linux/arch/i386/kernel/traps.c Thu Nov 14 21:40:01 2002
49 - regs->eflags &= ~TF_MASK;
50 + regs->eflags &= ~(TF_MASK|NT_MASK);