Module Name: src Committed By: kamil Date: Sun Apr 8 14:21:23 UTC 2018
Modified Files: src/sys/arch/x86/x86: dbregs.c Log Message: Add paranoid code to X86 Debug Registers Reset certain bits in DR6 and DR7 in x86_dbregs_setup_initdbstate(). Reset X86_BREAKPOINT_CONDITION_DETECTED in DR6. Reset X86_DR7_GENERAL_DETECT_ENABLE in DR7. It's allowed by devices or software before the kernel boot, to use these registers for their own purposes. Handle this paranoid case explicitly setting the mentioned bits to zero. Sponsored by <The NetBSD Foundation> To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 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.