[PATCH] xen: x86: Use new macro for debugreg

Make use of the 2 new macro set_debugreg and get_debugreg.

Signed-off-by: Vincent Hanquez <vincent.hanquez@cl.cam.ac.uk>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Vincent Hanquez
2005-06-23 00:08:43 -07:00
committed by Linus Torvalds
parent f5012310e3
commit 1cc6f12e03
5 changed files with 17 additions and 19 deletions

View File

@@ -624,7 +624,7 @@ int fastcall do_signal(struct pt_regs *regs, sigset_t *oldset)
* inside the kernel.
*/
if (unlikely(current->thread.debugreg[7])) {
loaddebug(&current->thread, 7);
set_debugreg(current->thread.debugreg[7], 7);
}
/* Whee! Actually deliver the signal. */