From ecd02dddd1d5bfc2141cbd0e205a53fb9d849c9e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Apr 2005 15:24:46 -0700 Subject: [PATCH] i386: Use loaddebug macro consistently This moves the macro loaddebug from asm-i386/suspend.h to asm-i386/processor.h, which is the place that makes sense for it to be defined, removes the extra copy of the same macro in arch/i386/kernel/process.c, and makes arch/i386/kernel/signal.c use the macro in place of its expansion. This is a purely cosmetic cleanup for the normal i386 kernel. However, it is handy for Xen to be able to just redefine the loaddebug macro once instead of also changing the signal.c code. Signed-off-by: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/asm-i386/suspend.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'include/asm-i386/suspend.h') diff --git a/include/asm-i386/suspend.h b/include/asm-i386/suspend.h index dfc1114c1b6..08be1e5009d 100644 --- a/include/asm-i386/suspend.h +++ b/include/asm-i386/suspend.h @@ -36,11 +36,6 @@ struct saved_context { unsigned long return_address; } __attribute__((packed)); -#define loaddebug(thread,register) \ - __asm__("movl %0,%%db" #register \ - : /* no output */ \ - :"r" ((thread)->debugreg[register])) - #ifdef CONFIG_ACPI_SLEEP extern unsigned long saved_eip; extern unsigned long saved_esp; -- cgit v1.2.3