Remove assert that Debug Registers are not mixed with Debug Trap Flag
New code is designed to mix them. Sponsored by <The NetBSD Foundation>
This commit is contained in:
parent
3a94491317
commit
c8f1c6f9bd
@ -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.
|
* Copyright (c) 2016 The NetBSD Foundation, Inc.
|
||||||
@ -93,13 +93,6 @@ set_x86_hw_watchpoints(struct lwp *l)
|
|||||||
{
|
{
|
||||||
size_t i;
|
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 */
|
/* Assert that there are available watchpoints */
|
||||||
KASSERT(l->l_md.md_flags & MDL_X86_HW_WATCHPOINTS);
|
KASSERT(l->l_md.md_flags & MDL_X86_HW_WATCHPOINTS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user