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
nexedi
linux
Commits
6deeb1f7
Commit
6deeb1f7
authored
Dec 24, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Plain Diff
Merge maxwell.earthlink.net:/usr/src/linus-2.5
into maxwell.earthlink.net:/usr/src/fbdev-2.5
parents
920dc5e8
56eb992e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
arch/i386/kernel/vm86.c
arch/i386/kernel/vm86.c
+5
-0
include/asm-i386/processor.h
include/asm-i386/processor.h
+1
-0
No files found.
arch/i386/kernel/vm86.c
View file @
6deeb1f7
...
...
@@ -116,6 +116,8 @@ struct pt_regs * save_v86_state(struct kernel_vm86_regs * regs)
current
->
thread
.
esp0
=
current
->
thread
.
saved_esp0
;
load_esp0
(
tss
,
current
->
thread
.
esp0
);
current
->
thread
.
saved_esp0
=
0
;
loadsegment
(
fs
,
current
->
thread
.
saved_fs
);
loadsegment
(
gs
,
current
->
thread
.
saved_gs
);
ret
=
KVM86
->
regs32
;
return
ret
;
}
...
...
@@ -283,6 +285,9 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk
*/
info
->
regs32
->
eax
=
0
;
tsk
->
thread
.
saved_esp0
=
tsk
->
thread
.
esp0
;
asm
volatile
(
"movl %%fs,%0"
:
"=m"
(
tsk
->
thread
.
saved_fs
));
asm
volatile
(
"movl %%gs,%0"
:
"=m"
(
tsk
->
thread
.
saved_gs
));
tss
=
init_tss
+
smp_processor_id
();
tss
->
esp0
=
tsk
->
thread
.
esp0
=
(
unsigned
long
)
&
info
->
VM86_TSS_ESP0
;
disable_sysenter
();
...
...
include/asm-i386/processor.h
View file @
6deeb1f7
...
...
@@ -387,6 +387,7 @@ struct thread_struct {
struct
vm86_struct
*
vm86_info
;
unsigned
long
screen_bitmap
;
unsigned
long
v86flags
,
v86mask
,
saved_esp0
;
unsigned
int
saved_fs
,
saved_gs
;
/* IO permissions */
unsigned
long
*
ts_io_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