Module Name: src Committed By: maxv Date: Mon Jan 14 18:54:07 UTC 2019
Modified Files: src/sys/arch/x86/x86: dbregs.c Log Message: Add #ifndef i386, the dbregs are 32bit in this case anyway. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 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.13 src/sys/arch/x86/x86/dbregs.c:1.14 --- src/sys/arch/x86/x86/dbregs.c:1.13 Sun Jan 13 10:01:07 2019 +++ src/sys/arch/x86/x86/dbregs.c Mon Jan 14 18:54:07 2019 @@ -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 @@ x86_dbregs_validate(const struct dbreg * 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; }