Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30741
b: refs/heads/master
c: 4031ff3
h: refs/heads/master
i:
  30739: 801a72d
v: v3
  • Loading branch information
Aleksey Gorelov authored and Linus Torvalds committed Jun 28, 2006
1 parent 5ecca0a commit 4cac129
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: c723e084606ca1c81e91b80b2c0c44bde7bbc4df
refs/heads/master: 4031ff388138b58e5cd472dccce38828bcb8c706
11 changes: 9 additions & 2 deletions trunk/arch/i386/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ VM_MASK = 0x00020000
#define resume_kernel restore_nocheck
#endif

#ifdef CONFIG_VM86
#define resume_userspace_sig check_userspace
#else
#define resume_userspace_sig resume_userspace
#endif

#define SAVE_ALL \
cld; \
pushl %es; \
Expand Down Expand Up @@ -211,6 +217,7 @@ ret_from_exception:
preempt_stop
ret_from_intr:
GET_THREAD_INFO(%ebp)
check_userspace:
movl EFLAGS(%esp), %eax # mix EFLAGS and CS
movb CS(%esp), %al
testl $(VM_MASK | 3), %eax
Expand Down Expand Up @@ -415,7 +422,7 @@ work_notifysig: # deal with pending signals and
# vm86-space
xorl %edx, %edx
call do_notify_resume
jmp resume_userspace
jmp resume_userspace_sig

ALIGN
work_notifysig_v86:
Expand All @@ -428,7 +435,7 @@ work_notifysig_v86:
movl %eax, %esp
xorl %edx, %edx
call do_notify_resume
jmp resume_userspace
jmp resume_userspace_sig
#endif

# perform syscall exit tracing
Expand Down

0 comments on commit 4cac129

Please sign in to comment.