Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
df4b68ca
Commit
df4b68ca
authored
Mar 30, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SMP/preemption race condition in vm86 entry mode.
parent
37f7d708
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
arch/i386/kernel/vm86.c
arch/i386/kernel/vm86.c
+2
-1
No files found.
arch/i386/kernel/vm86.c
View file @
df4b68ca
...
@@ -289,9 +289,10 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk
...
@@ -289,9 +289,10 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk
asm
volatile
(
"movl %%fs,%0"
:
"=m"
(
tsk
->
thread
.
saved_fs
));
asm
volatile
(
"movl %%fs,%0"
:
"=m"
(
tsk
->
thread
.
saved_fs
));
asm
volatile
(
"movl %%gs,%0"
:
"=m"
(
tsk
->
thread
.
saved_gs
));
asm
volatile
(
"movl %%gs,%0"
:
"=m"
(
tsk
->
thread
.
saved_gs
));
tss
=
init_tss
+
smp_processor_id
();
tss
=
init_tss
+
get_cpu
();
tss
->
esp0
=
tsk
->
thread
.
esp0
=
(
unsigned
long
)
&
info
->
VM86_TSS_ESP0
;
tss
->
esp0
=
tsk
->
thread
.
esp0
=
(
unsigned
long
)
&
info
->
VM86_TSS_ESP0
;
disable_sysenter
(
tss
);
disable_sysenter
(
tss
);
put_cpu
();
tsk
->
thread
.
screen_bitmap
=
info
->
screen_bitmap
;
tsk
->
thread
.
screen_bitmap
=
info
->
screen_bitmap
;
if
(
info
->
flags
&
VM86_SCREEN_BITMAP
)
if
(
info
->
flags
&
VM86_SCREEN_BITMAP
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment