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
54f09876
Commit
54f09876
authored
Jan 08, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make vm86 traps correctly distinguish between vm86 and kernel mode.
parent
6f2f7e21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
arch/i386/kernel/traps.c
arch/i386/kernel/traps.c
+5
-2
No files found.
arch/i386/kernel/traps.c
View file @
54f09876
...
@@ -276,8 +276,11 @@ static inline unsigned long get_cr2(void)
...
@@ -276,8 +276,11 @@ static inline unsigned long get_cr2(void)
static
inline
void
do_trap
(
int
trapnr
,
int
signr
,
char
*
str
,
int
vm86
,
static
inline
void
do_trap
(
int
trapnr
,
int
signr
,
char
*
str
,
int
vm86
,
struct
pt_regs
*
regs
,
long
error_code
,
siginfo_t
*
info
)
struct
pt_regs
*
regs
,
long
error_code
,
siginfo_t
*
info
)
{
{
if
(
vm86
&&
regs
->
eflags
&
VM_MASK
)
if
(
regs
->
eflags
&
VM_MASK
)
{
if
(
vm86
)
goto
vm86_trap
;
goto
vm86_trap
;
goto
trap_signal
;
}
if
(
!
(
regs
->
xcs
&
3
))
if
(
!
(
regs
->
xcs
&
3
))
goto
kernel_trap
;
goto
kernel_trap
;
...
...
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