Commit 8674d056 authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

Merge penguin:v2.5/linux

into home.transmeta.com:/home/torvalds/v2.5/linux
parents 1975448f 2b87ccc4
...@@ -113,10 +113,13 @@ struct pt_regs * save_v86_state(struct kernel_vm86_regs * regs) ...@@ -113,10 +113,13 @@ struct pt_regs * save_v86_state(struct kernel_vm86_regs * regs)
printk("vm86: could not access userspace vm86_info\n"); printk("vm86: could not access userspace vm86_info\n");
do_exit(SIGSEGV); do_exit(SIGSEGV);
} }
tss = init_tss + smp_processor_id();
tss = init_tss + get_cpu();
current->thread.esp0 = current->thread.saved_esp0; current->thread.esp0 = current->thread.saved_esp0;
load_esp0(tss, current->thread.esp0); load_esp0(tss, current->thread.esp0);
current->thread.saved_esp0 = 0; current->thread.saved_esp0 = 0;
put_cpu();
loadsegment(fs, current->thread.saved_fs); loadsegment(fs, current->thread.saved_fs);
loadsegment(gs, current->thread.saved_gs); loadsegment(gs, current->thread.saved_gs);
ret = KVM86->regs32; ret = KVM86->regs32;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment