aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/process.c
diff options
context:
space:
mode:
authorVincent Hanquez <vincent.hanquez@cl.cam.ac.uk>2005-06-23 03:08:43 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 12:45:13 -0400
commit1cc6f12e03ebc064b74161c684f987284ce9d0cc (patch)
treefd22e53fa49ea211914ee12fb45df6c4a2d01ee3 /arch/i386/kernel/process.c
parentf5012310e35bd62fd39fce338ee44422c975ff3c (diff)
[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>
Diffstat (limited to 'arch/i386/kernel/process.c')
-rw-r--r--arch/i386/kernel/process.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c
index 3c3f245cca53..2468ab70c386 100644
--- a/arch/i386/kernel/process.c
+++ b/arch/i386/kernel/process.c
@@ -633,13 +633,13 @@ struct task_struct fastcall * __switch_to(struct task_struct *prev_p, struct tas
633 * Now maybe reload the debug registers 633 * Now maybe reload the debug registers
634 */ 634 */
635 if (unlikely(next->debugreg[7])) { 635 if (unlikely(next->debugreg[7])) {
636 loaddebug(next, 0); 636 set_debugreg(current->thread.debugreg[0], 0);
637 loaddebug(next, 1); 637 set_debugreg(current->thread.debugreg[1], 1);
638 loaddebug(next, 2); 638 set_debugreg(current->thread.debugreg[2], 2);
639 loaddebug(next, 3); 639 set_debugreg(current->thread.debugreg[3], 3);
640 /* no 4 and 5 */ 640 /* no 4 and 5 */
641 loaddebug(next, 6); 641 set_debugreg(current->thread.debugreg[6], 6);
642 loaddebug(next, 7); 642 set_debugreg(current->thread.debugreg[7], 7);
643 } 643 }
644 644
645 if (unlikely(prev->io_bitmap_ptr || next->io_bitmap_ptr)) 645 if (unlikely(prev->io_bitmap_ptr || next->io_bitmap_ptr))