aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-um/processor-generic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-um/processor-generic.h')
-rw-r--r--include/asm-um/processor-generic.h24
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
17struct mm_struct; 18struct 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(&regs, tsk->thread.mode.skas.switch_buf); \
145 UPT_REG(&regs, 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 */