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 Add #ifndef i386, the dbregs are 32bit in t...
details: https://anonhg.NetBSD.org/src/rev/0aba0a6bed7e
branches: trunk
changeset: 447517:0aba0a6bed7e
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Jan 14 18:54:07 2019 +0000
description:
Add #ifndef i386, the dbregs are 32bit in this case anyway.
diffstat:
sys/arch/x86/x86/dbregs.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r a0866f7687d4 -r 0aba0a6bed7e sys/arch/x86/x86/dbregs.c
--- a/sys/arch/x86/x86/dbregs.c Mon Jan 14 18:51:15 2019 +0000
+++ b/sys/arch/x86/x86/dbregs.c Mon Jan 14 18:54:07 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dbregs.c,v 1.13 2019/01/13 10:01:07 maxv Exp $ */
+/* $NetBSD: dbregs.c,v 1.14 2019/01/14 18:54:07 maxv Exp $ */
/*
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -256,12 +256,14 @@
return EINVAL;
}
+#ifndef i386
if (regs->dr[6] & X86_DR6_MBZ) {
return EINVAL;
}
if (regs->dr[7] & X86_DR7_MBZ) {
return EINVAL;
}
+#endif
if (regs->dr[7] & X86_DR7_GENERAL_DETECT_ENABLE) {
return EINVAL;
}
Home |
Main Index |
Thread Index |
Old Index