Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6969
b: refs/heads/master
c: 5fd75eb
h: refs/heads/master
i:
  6967: 74f2008
v: v3
  • Loading branch information
Petr Tesarik authored and Linus Torvalds committed Sep 5, 2005
1 parent 905fee1 commit 124b053
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 7ae65fd334232468a9d6b523a4fc141cd6ec5ea4
refs/heads/master: 5fd75ebb1a58c1a3c9e3d9fdf75ce7286b79bb74
6 changes: 5 additions & 1 deletion trunk/arch/i386/kernel/vm86.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ void handle_vm86_fault(struct kernel_vm86_regs * regs, long error_code)
unsigned char opcode;
unsigned char __user *csp;
unsigned char __user *ssp;
unsigned short ip, sp;
unsigned short ip, sp, orig_flags;
int data32, pref_done;

#define CHECK_IF_IN_TRAP \
Expand All @@ -551,8 +551,12 @@ void handle_vm86_fault(struct kernel_vm86_regs * regs, long error_code)
#define VM86_FAULT_RETURN do { \
if (VMPI.force_return_for_pic && (VEFLAGS & (IF_MASK | VIF_MASK))) \
return_to_32bit(regs, VM86_PICRETURN); \
if (orig_flags & TF_MASK) \
handle_vm86_trap(regs, 0, 1); \
return; } while (0)

orig_flags = *(unsigned short *)&regs->eflags;

csp = (unsigned char __user *) (regs->cs << 4);
ssp = (unsigned char __user *) (regs->ss << 4);
sp = SP(regs);
Expand Down

0 comments on commit 124b053

Please sign in to comment.