Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145801
b: refs/heads/master
c: 3aa6b18
h: refs/heads/master
i:
  145799: 1271230
v: v3
  • Loading branch information
Lubomir Rintel authored and Ingo Molnar committed Jun 7, 2009
1 parent f2b2ab4 commit 11bab0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a4aca641bc4598e77b866804f47c651ec4a764d
refs/heads/master: 3aa6b186f86c5d06d6d92d14311ffed51f091f40
9 changes: 5 additions & 4 deletions trunk/arch/x86/kernel/vm86_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,9 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk
info->regs.pt.ds = 0;
info->regs.pt.es = 0;
info->regs.pt.fs = 0;

/* we are clearing gs later just before "jmp resume_userspace",
* because it is not saved/restored.
*/
#ifndef CONFIG_X86_32_LAZY_GS
info->regs.pt.gs = 0;
#endif

/*
* The flags register is also special: we cannot trust that the user
Expand Down Expand Up @@ -343,7 +342,9 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk
__asm__ __volatile__(
"movl %0,%%esp\n\t"
"movl %1,%%ebp\n\t"
#ifdef CONFIG_X86_32_LAZY_GS
"mov %2, %%gs\n\t"
#endif
"jmp resume_userspace"
: /* no outputs */
:"r" (&info->regs), "r" (task_thread_info(tsk)), "r" (0));
Expand Down

0 comments on commit 11bab0b

Please sign in to comment.