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
33615dd1
Commit
33615dd1
authored
Dec 23, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sysenter restart backwards jump, add offset comments,
and make the alignment of the return point be saner.
parent
6c39ac1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
arch/i386/kernel/entry.S
arch/i386/kernel/entry.S
+1
-1
arch/i386/kernel/sysenter.c
arch/i386/kernel/sysenter.c
+9
-4
No files found.
arch/i386/kernel/entry.S
View file @
33615dd1
...
@@ -233,7 +233,7 @@ need_resched:
...
@@ -233,7 +233,7 @@ need_resched:
#endif
#endif
/*
Points
to
after
the
"sysenter"
instruction
in
the
vsyscall
page
*/
/*
Points
to
after
the
"sysenter"
instruction
in
the
vsyscall
page
*/
#define SYSENTER_RETURN 0xffffe0
0a
#define SYSENTER_RETURN 0xffffe0
10
#
sysenter
call
handler
stub
#
sysenter
call
handler
stub
ALIGN
ALIGN
...
...
arch/i386/kernel/sysenter.c
View file @
33615dd1
...
@@ -57,12 +57,17 @@ static int __init sysenter_setup(void)
...
@@ -57,12 +57,17 @@ static int __init sysenter_setup(void)
0x51
,
/* push %ecx */
0x51
,
/* push %ecx */
0x52
,
/* push %edx */
0x52
,
/* push %edx */
0x55
,
/* push %ebp */
0x55
,
/* push %ebp */
/* 3: backjump target */
0x89
,
0xe5
,
/* movl %esp,%ebp */
0x89
,
0xe5
,
/* movl %esp,%ebp */
0x0f
,
0x34
,
/* sysenter */
0x0f
,
0x34
,
/* sysenter */
0x00
,
/* align return point */
/* System call restart point is here! (SYSENTER_RETURN - 2) */
/* 7: align return point with nop's to make disassembly easier */
0xeb
,
0xfa
,
/* jmp to "movl %esp,%ebp" */
0x90
,
0x90
,
0x90
,
0x90
,
/* System call normal return point is here! (SYSENTER_RETURN in entry.S) */
0x90
,
0x90
,
0x90
,
/* 14: System call restart point is here! (SYSENTER_RETURN - 2) */
0xeb
,
0xf3
,
/* jmp to "movl %esp,%ebp" */
/* 16: System call normal return point is here! (SYSENTER_RETURN in entry.S) */
0x5d
,
/* pop %ebp */
0x5d
,
/* pop %ebp */
0x5a
,
/* pop %edx */
0x5a
,
/* pop %edx */
0x59
,
/* pop %ecx */
0x59
,
/* pop %ecx */
...
...
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