Re: %%db6 register still not saved 2.2.16 (x86)

From: James Cownie (jcownie@etnus.com)
Date: Tue Jun 13 2000 - 06:16:42 EST


> Ok so test it without moving the stuff before the vm86 check and if
> it still works send a corrected patch

Here is a patch against 2.2.16, which leaves everything _after_ the
vm86 check and which works fine for me.

I have not looked at the 2.4 sources to see if the same problem exists
there.

jcownie@pc2: diff -c traps.c.orig traps.c
*** traps.c.orig Wed Jun 7 22:26:42 2000
--- traps.c Tue Jun 13 10:35:12 2000
***************
*** 367,372 ****
--- 367,375 ----
  
          __asm__ __volatile__("movl %%db6,%0" : "=r" (condition));
  
+ /* Ensure the debug status register is visible to ptrace (or the process itself) */
+ tsk->tss.debugreg[6] = condition;
+
          /* Mask out spurious TF errors due to lazy TF clearing */
          if (condition & DR_STEP) {
                  /*

-- Jim

James Cownie <jcownie@etnus.com>
Etnus, Inc. +44 117 9071438
http://www.etnus.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:28 EST