Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Fix bug with swapped event type and registe...
details: https://anonhg.NetBSD.org/src/rev/e6cda3e883d8
branches: trunk
changeset: 350738:e6cda3e883d8
user: kamil <kamil%NetBSD.org@localhost>
date: Wed Jan 18 12:15:21 2017 +0000
description:
Fix bug with swapped event type and register that fired in hw watchpoints
Swap bits for DR_EVENT_MASK and DR_REGISTER_MASK.
Sponsored by <The NetBSD Foundation>
diffstat:
sys/arch/x86/x86/dbregs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 9601ccfc1eb7 -r e6cda3e883d8 sys/arch/x86/x86/dbregs.c
--- a/sys/arch/x86/x86/dbregs.c Wed Jan 18 10:22:09 2017 +0000
+++ b/sys/arch/x86/x86/dbregs.c Wed Jan 18 12:15:21 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dbregs.c,v 1.3 2017/01/18 05:48:16 kamil Exp $ */
+/* $NetBSD: dbregs.c,v 1.4 2017/01/18 12:15:21 kamil Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -144,8 +144,8 @@
}
/* Local temporary bitfield concept to compose event and register that fired */
-#define DR_EVENT_MASK __BITS(15,8)
-#define DR_REGISTER_MASK __BITS(7,0)
+#define DR_EVENT_MASK __BITS(7,0)
+#define DR_REGISTER_MASK __BITS(15,8)
int
user_trap_x86_hw_watchpoint(void)
Home |
Main Index |
Thread Index |
Old Index