diff options
author | Vincent Hanquez <vincent.hanquez@cl.cam.ac.uk> | 2005-06-23 00:08:43 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-23 09:45:13 -0700 |
commit | 1cc6f12e03ebc064b74161c684f987284ce9d0cc (patch) | |
tree | fd22e53fa49ea211914ee12fb45df6c4a2d01ee3 /arch/i386/power | |
parent | f5012310e35bd62fd39fce338ee44422c975ff3c (diff) | |
download | kernel_samsung_crespo-1cc6f12e03ebc064b74161c684f987284ce9d0cc.zip kernel_samsung_crespo-1cc6f12e03ebc064b74161c684f987284ce9d0cc.tar.gz kernel_samsung_crespo-1cc6f12e03ebc064b74161c684f987284ce9d0cc.tar.bz2 |
[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/power')
-rw-r--r-- | arch/i386/power/cpu.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/i386/power/cpu.c b/arch/i386/power/cpu.c index cf337c6..6f521cf 100644 --- a/arch/i386/power/cpu.c +++ b/arch/i386/power/cpu.c @@ -94,13 +94,13 @@ static void fix_processor_context(void) * Now maybe reload the debug registers */ if (current->thread.debugreg[7]){ - loaddebug(¤t->thread, 0); - loaddebug(¤t->thread, 1); - loaddebug(¤t->thread, 2); - loaddebug(¤t->thread, 3); - /* no 4 and 5 */ - loaddebug(¤t->thread, 6); - loaddebug(¤t->thread, 7); + set_debugreg(current->thread.debugreg[0], 0); + set_debugreg(current->thread.debugreg[1], 1); + set_debugreg(current->thread.debugreg[2], 2); + set_debugreg(current->thread.debugreg[3], 3); + /* no 4 and 5 */ + set_debugreg(current->thread.debugreg[6], 6); + set_debugreg(current->thread.debugreg[7], 7); } } |