diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/processor.h | 8 | ||||
-rw-r--r-- | include/asm-i386/suspend.h | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index be258b0e5a5f..7149784ed40b 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h | |||
@@ -499,6 +499,14 @@ static inline void load_esp0(struct tss_struct *tss, struct thread_struct *threa | |||
499 | regs->esp = new_esp; \ | 499 | regs->esp = new_esp; \ |
500 | } while (0) | 500 | } while (0) |
501 | 501 | ||
502 | /* | ||
503 | * This special macro can be used to load a debugging register | ||
504 | */ | ||
505 | #define loaddebug(thread,register) \ | ||
506 | __asm__("movl %0,%%db" #register \ | ||
507 | : /* no output */ \ | ||
508 | :"r" ((thread)->debugreg[register])) | ||
509 | |||
502 | /* Forward declaration, a strange C thing */ | 510 | /* Forward declaration, a strange C thing */ |
503 | struct task_struct; | 511 | struct task_struct; |
504 | struct mm_struct; | 512 | struct mm_struct; |
diff --git a/include/asm-i386/suspend.h b/include/asm-i386/suspend.h index dfc1114c1b6f..08be1e5009d4 100644 --- a/include/asm-i386/suspend.h +++ b/include/asm-i386/suspend.h | |||
@@ -36,11 +36,6 @@ struct saved_context { | |||
36 | unsigned long return_address; | 36 | unsigned long return_address; |
37 | } __attribute__((packed)); | 37 | } __attribute__((packed)); |
38 | 38 | ||
39 | #define loaddebug(thread,register) \ | ||
40 | __asm__("movl %0,%%db" #register \ | ||
41 | : /* no output */ \ | ||
42 | :"r" ((thread)->debugreg[register])) | ||
43 | |||
44 | #ifdef CONFIG_ACPI_SLEEP | 39 | #ifdef CONFIG_ACPI_SLEEP |
45 | extern unsigned long saved_eip; | 40 | extern unsigned long saved_eip; |
46 | extern unsigned long saved_esp; | 41 | extern unsigned long saved_esp; |