diff options
author | Tony Luck <tony.luck@intel.com> | 2005-10-20 13:41:44 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-10-20 13:41:44 -0400 |
commit | 9cec58dc138d6fcad9f447a19c8ff69f6540e667 (patch) | |
tree | 4fe1cca94fdba8b705c87615bee06d3346f687ce /include/asm-um/processor-generic.h | |
parent | 17e5ad6c0ce5a970e2830d0de8bdd60a2f077d38 (diff) | |
parent | ac9b9c667c2e1194e22ebe0a441ae1c37aaa9b90 (diff) |
Update from upstream with manual merge of Yasunori Goto's
changes to swiotlb.c made in commit 281dd25cdc0d6903929b79183816d151ea626341
since this file has been moved from arch/ia64/lib/swiotlb.c to
lib/swiotlb.c
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-um/processor-generic.h')
-rw-r--r-- | include/asm-um/processor-generic.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/include/asm-um/processor-generic.h b/include/asm-um/processor-generic.h index b2fc94fbc2d9..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 | ||
@@ -21,6 +22,7 @@ struct thread_struct { | |||
21 | * copy_thread) to mark that we are begin called from userspace (fork / | 22 | * copy_thread) to mark that we are begin called from userspace (fork / |
22 | * vfork / clone), and reset to 0 after. It is left to 0 when called | 23 | * vfork / clone), and reset to 0 after. It is left to 0 when called |
23 | * from kernelspace (i.e. kernel_thread() or fork_idle(), as of 2.6.11). */ | 24 | * from kernelspace (i.e. kernel_thread() or fork_idle(), as of 2.6.11). */ |
25 | struct task_struct *saved_task; | ||
24 | int forking; | 26 | int forking; |
25 | int nsyscalls; | 27 | int nsyscalls; |
26 | struct pt_regs regs; | 28 | struct pt_regs regs; |
@@ -135,19 +137,15 @@ extern struct cpuinfo_um cpu_data[]; | |||
135 | #define current_cpu_data boot_cpu_data | 137 | #define current_cpu_data boot_cpu_data |
136 | #endif | 138 | #endif |
137 | 139 | ||
138 | #define KSTK_EIP(tsk) (PT_REGS_IP(&tsk->thread.regs)) | ||
139 | #define KSTK_ESP(tsk) (PT_REGS_SP(&tsk->thread.regs)) | ||
140 | #define get_wchan(p) (0) | ||
141 | 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) | ||
142 | #endif | 148 | #endif |
149 | #define get_wchan(p) (0) | ||
143 | 150 | ||
144 | /* | 151 | #endif |
145 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
146 | * Emacs will notice this stuff at the end of the file and automatically | ||
147 | * adjust the settings for this buffer only. This must remain at the end | ||
148 | * of the file. | ||
149 | * --------------------------------------------------------------------------- | ||
150 | * Local variables: | ||
151 | * c-file-style: "linux" | ||
152 | * End: | ||
153 | */ | ||