Module Name: src
Committed By: kamil
Date: Wed Jan 18 05:48:16 UTC 2017
Modified Files:
src/sys/arch/x86/x86: dbregs.c
Log Message:
Remove assert that Debug Registers are not mixed with Debug Trap Flag
New code is designed to mix them.
Sponsored by <The NetBSD Foundation>
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86/x86/dbregs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/dbregs.c
diff -u src/sys/arch/x86/x86/dbregs.c:1.2 src/sys/arch/x86/x86/dbregs.c:1.3
--- src/sys/arch/x86/x86/dbregs.c:1.2 Wed Jan 18 05:12:00 2017
+++ src/sys/arch/x86/x86/dbregs.c Wed Jan 18 05:48:16 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: dbregs.c,v 1.2 2017/01/18 05:12:00 kamil Exp $ */
+/* $NetBSD: dbregs.c,v 1.3 2017/01/18 05:48:16 kamil Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -93,13 +93,6 @@ set_x86_hw_watchpoints(struct lwp *l)
{
size_t i;
- /* Assert that Debug Registers are not mixed with Debug Trap Flag */
-#ifdef __x86_64__
- KASSERT((l->l_md.md_regs->tf_rflags & PSL_T) == 0);
-#else
- KASSERT((l->l_md.md_regs->tf_eflags & PSL_T) == 0);
-#endif
-
/* Assert that there are available watchpoints */
KASSERT(l->l_md.md_flags & MDL_X86_HW_WATCHPOINTS);