Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2003 18:03:19 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28117 for review
Message-ID:  <200304050203.h3523JqG092606@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28117

Change 28117 by peter@peter_daintree on 2003/04/04 18:02:36

	no debug regs

Affected files ...

.. //depot/projects/hammer/sys/x86_64/x86_64/trap.c#17 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/x86_64/trap.c#17 (text+ko) ====

@@ -478,25 +478,6 @@
 				goto out;
 			}
 			/*
-			 * Ignore debug register trace traps due to
-			 * accesses in the user's address space, which
-			 * can happen under several conditions such as
-			 * if a user sets a watchpoint on a buffer and
-			 * then passes that buffer to a system call.
-			 * We still want to get TRCTRAPS for addresses
-			 * in kernel space because that is useful when
-			 * debugging the kernel.
-			 */
-			/* XXX Giant */
-			if (user_dbreg_trap()) {
-				/*
-				 * Reset breakpoint bits because the
-				 * processor doesn't
-				 */
-				load_dr6(rdr6() & 0xfffffff0);
-				goto out;
-			}
-			/*
 			 * FALLTHROUGH (TRCTRAP kernel mode, kernel address)
 			 */
 		case T_BPTFLT:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304050203.h3523JqG092606>