diff options
Diffstat (limited to 'include/asm-um')
| -rw-r--r-- | include/asm-um/processor-generic.h | 23 | ||||
| -rw-r--r-- | include/asm-um/processor-i386.h | 15 | ||||
| -rw-r--r-- | include/asm-um/processor-x86_64.h | 14 |
3 files changed, 17 insertions, 35 deletions
diff --git a/include/asm-um/processor-generic.h b/include/asm-um/processor-generic.h index 2d242360c3d6..075771c371f6 100644 --- a/include/asm-um/processor-generic.h +++ b/include/asm-um/processor-generic.h | |||
| @@ -13,6 +13,7 @@ struct task_struct; | |||
| 13 | #include "linux/config.h" | 13 | #include "linux/config.h" |
| 14 | #include "asm/ptrace.h" | 14 | #include "asm/ptrace.h" |
| 15 | #include "choose-mode.h" | 15 | #include "choose-mode.h" |
| 16 | #include "registers.h" | ||
| 16 | 17 | ||
| 17 | struct mm_struct; | 18 | struct mm_struct; |
| 18 | 19 | ||
| @@ -136,19 +137,15 @@ extern struct cpuinfo_um cpu_data[]; | |||
| 136 | #define current_cpu_data boot_cpu_data | 137 | #define current_cpu_data boot_cpu_data |
| 137 | #endif | 138 | #endif |
| 138 | 139 | ||
| 139 | #define KSTK_EIP(tsk) (PT_REGS_IP(&tsk->thread.regs)) | ||
| 140 | #define KSTK_ESP(tsk) (PT_REGS_SP(&tsk->thread.regs)) | ||
| 141 | #define get_wchan(p) (0) | ||
| 142 | 140 | ||
| 141 | #ifdef CONFIG_MODE_SKAS | ||
| 142 | #define KSTK_REG(tsk, reg) \ | ||
| 143 | ({ union uml_pt_regs regs; \ | ||
| 144 | get_thread_regs(®s, tsk->thread.mode.skas.switch_buf); \ | ||
| 145 | UPT_REG(®s, reg); }) | ||
| 146 | #else | ||
| 147 | #define KSTK_REG(tsk, reg) (0xbadbabe) | ||
| 143 | #endif | 148 | #endif |
| 149 | #define get_wchan(p) (0) | ||
| 144 | 150 | ||
| 145 | /* | 151 | #endif |
| 146 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 147 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 148 | * adjust the settings for this buffer only. This must remain at the end | ||
| 149 | * of the file. | ||
| 150 | * --------------------------------------------------------------------------- | ||
| 151 | * Local variables: | ||
| 152 | * c-file-style: "linux" | ||
| 153 | * End: | ||
| 154 | */ | ||
diff --git a/include/asm-um/processor-i386.h b/include/asm-um/processor-i386.h index 431bad3ae9d7..4108a579eb92 100644 --- a/include/asm-um/processor-i386.h +++ b/include/asm-um/processor-i386.h | |||
| @@ -43,17 +43,10 @@ static inline void rep_nop(void) | |||
| 43 | #define ARCH_IS_STACKGROW(address) \ | 43 | #define ARCH_IS_STACKGROW(address) \ |
| 44 | (address + 32 >= UPT_SP(¤t->thread.regs.regs)) | 44 | (address + 32 >= UPT_SP(¤t->thread.regs.regs)) |
| 45 | 45 | ||
| 46 | #define KSTK_EIP(tsk) KSTK_REG(tsk, EIP) | ||
| 47 | #define KSTK_ESP(tsk) KSTK_REG(tsk, UESP) | ||
| 48 | #define KSTK_EBP(tsk) KSTK_REG(tsk, EBP) | ||
| 49 | |||
| 46 | #include "asm/processor-generic.h" | 50 | #include "asm/processor-generic.h" |
| 47 | 51 | ||
| 48 | #endif | 52 | #endif |
| 49 | |||
| 50 | /* | ||
| 51 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 52 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 53 | * adjust the settings for this buffer only. This must remain at the end | ||
| 54 | * of the file. | ||
| 55 | * --------------------------------------------------------------------------- | ||
| 56 | * Local variables: | ||
| 57 | * c-file-style: "linux" | ||
| 58 | * End: | ||
| 59 | */ | ||
diff --git a/include/asm-um/processor-x86_64.h b/include/asm-um/processor-x86_64.h index 0beb9a42ae05..e1e1255a1d36 100644 --- a/include/asm-um/processor-x86_64.h +++ b/include/asm-um/processor-x86_64.h | |||
| @@ -36,17 +36,9 @@ extern inline void rep_nop(void) | |||
| 36 | #define ARCH_IS_STACKGROW(address) \ | 36 | #define ARCH_IS_STACKGROW(address) \ |
| 37 | (address + 128 >= UPT_SP(¤t->thread.regs.regs)) | 37 | (address + 128 >= UPT_SP(¤t->thread.regs.regs)) |
| 38 | 38 | ||
| 39 | #define KSTK_EIP(tsk) KSTK_REG(tsk, RIP) | ||
| 40 | #define KSTK_ESP(tsk) KSTK_REG(tsk, RSP) | ||
| 41 | |||
| 39 | #include "asm/processor-generic.h" | 42 | #include "asm/processor-generic.h" |
| 40 | 43 | ||
| 41 | #endif | 44 | #endif |
| 42 | |||
| 43 | /* | ||
| 44 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 45 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 46 | * adjust the settings for this buffer only. This must remain at the end | ||
| 47 | * of the file. | ||
| 48 | * --------------------------------------------------------------------------- | ||
| 49 | * Local variables: | ||
| 50 | * c-file-style: "linux" | ||
| 51 | * End: | ||
| 52 | */ | ||
