x86/debug: Clear reserved bits of DR6 in do_debug()
authorK.Prasad <prasad@linux.vnet.ibm.com>
Thu, 28 Jan 2010 11:14:01 +0000 (16:44 +0530)
committerFrederic Weisbecker <fweisbec@gmail.com>
Fri, 29 Jan 2010 01:26:10 +0000 (02:26 +0100)
commit40f9249a73f6c251adea492b1c3d19d39e2a9bda
treec60a605bdd1ca6981de926234dffd93a3f9b970f
parent1e12a4a7a3a78bc9c3aaf3486dde3b8ab1cdf465
x86/debug: Clear reserved bits of DR6 in do_debug()

Clear the reserved bits from the stored copy of debug status
register (DR6).
This will help easy bitwise operations such as quick testing
of a debug event origin.

Signed-off-by: K.Prasad <prasad@linux.vnet.ibm.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <20100128111401.GB13935@in.ibm.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
arch/x86/include/asm/debugreg.h
arch/x86/kernel/traps.c