linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Possible bug in arch/i386/kernel/process.c for reloading of debug registers (DRx)?
@ 2003-02-03 23:51 Kevin Lawton
  0 siblings, 0 replies; 7+ messages in thread
From: Kevin Lawton @ 2003-02-03 23:51 UTC (permalink / raw)
  To: linux-kernel

I was scanning through the source and noticed the lines below.
Should the code below, be reloading at least the local bits of
DR7 if the current DR7 value != 0?  From a quick glance, it
looks like only if the next task's DR7 value is non-zero,
that DR7 is reloaded.  I'm wondering if this would leave
a new task to receive "local" debug events for the previous
task if prev->DR7!=0 && next->DR7==0.

-Kevin


linux-2.5.59: arch/i386/kernel/process.c: line 462+:

  /*
   * Now maybe reload the debug registers
   */
  if (unlikely(next->debugreg[7])) {
    loaddebug(next, 0);
    loaddebug(next, 1);
    loaddebug(next, 2);
    loaddebug(next, 3);
    /* no 4 and 5 */
    loaddebug(next, 6);
    loaddebug(next, 7);
  }

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-02-09  6:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030203235140.10443.qmail@web80304.mail.yahoo.com.suse.lists.linux.kernel>
2003-02-04  0:39 ` Possible bug in arch/i386/kernel/process.c for reloading of debug registers (DRx)? Andi Kleen
2003-02-07 16:33   ` Pavel Machek
2003-02-08 17:22     ` Andi Kleen
2003-02-08 19:31       ` Jamie Lokier
2003-02-09  0:56         ` Andi Kleen
2003-02-09  6:15           ` [PATCH] Optimisation and CONFIG_PREEMPT fix of reloading of debug registers Jamie Lokier
2003-02-03 23:51 Possible bug in arch/i386/kernel/process.c for reloading of debug registers (DRx)? Kevin Lawton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).