From 8f09f5ed1674ddf635c6ac26afe785cb3a80f77d Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Wed, 4 Jun 2003 14:19:18 +0000 Subject: bitkeeper revision 1.252 (3eddffe6IQ1eZ1bHUcbBhwG8ApEXrA) processor.h, setup.c, process.c: Further IOPL fix -- also initial idle thread has current->thread.esp0 initialised to a non-zero value. --- xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c') diff --git a/xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c b/xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c index c1764fce50..b4e7a6cd14 100644 --- a/xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c +++ b/xenolinux-2.4.21-pre4-sparse/arch/xeno/kernel/process.c @@ -365,14 +365,11 @@ void __switch_to(struct task_struct *prev_p, struct task_struct *next_p) queue_multicall0(__HYPERVISOR_fpu_taskswitch); } - if ( next->esp0 != 0 ) - { - queue_multicall2(__HYPERVISOR_stack_switch, __KERNEL_DS, next->esp0); - /* Next call will silently fail if we are a non-privileged guest OS. */ - queue_multicall2(__HYPERVISOR_set_priv_levels, - ((((struct pt_regs *)next->esp0)-1)->eflags>>12)&3, - next->hypercall_pl); - } + queue_multicall2(__HYPERVISOR_stack_switch, __KERNEL_DS, next->esp0); + /* Next call will silently fail if we are a non-privileged guest OS. */ + queue_multicall2(__HYPERVISOR_set_priv_levels, + ((((struct pt_regs *)next->esp0)-1)->eflags>>12)&3, + next->hypercall_pl); /* EXECUTE ALL TASK SWITCH XEN SYSCALLS AT THIS POINT. */ execute_multicall_list(); -- cgit v1.2.3