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
f76ee77d
Commit
f76ee77d
authored
Oct 17, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/home/anton/ppc64/linux-2.5
into samba.org:/home/anton/ppc64/for-linus-ppc64
parents
6bea8b28
01d259fe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
arch/i386/kernel/traps.c
arch/i386/kernel/traps.c
+4
-0
arch/i386/mm/fault.c
arch/i386/mm/fault.c
+1
-1
No files found.
arch/i386/kernel/traps.c
View file @
f76ee77d
...
@@ -374,6 +374,9 @@ DO_ERROR_INFO(17, SIGBUS, "alignment check", alignment_check, BUS_ADRALN, get_cr
...
@@ -374,6 +374,9 @@ DO_ERROR_INFO(17, SIGBUS, "alignment check", alignment_check, BUS_ADRALN, get_cr
asmlinkage
void
do_general_protection
(
struct
pt_regs
*
regs
,
long
error_code
)
asmlinkage
void
do_general_protection
(
struct
pt_regs
*
regs
,
long
error_code
)
{
{
if
(
regs
->
eflags
&
X86_EFLAGS_IF
)
local_irq_enable
();
if
(
regs
->
eflags
&
VM_MASK
)
if
(
regs
->
eflags
&
VM_MASK
)
goto
gp_in_vm86
;
goto
gp_in_vm86
;
...
@@ -386,6 +389,7 @@ asmlinkage void do_general_protection(struct pt_regs * regs, long error_code)
...
@@ -386,6 +389,7 @@ asmlinkage void do_general_protection(struct pt_regs * regs, long error_code)
return
;
return
;
gp_in_vm86:
gp_in_vm86:
local_irq_enable
();
handle_vm86_fault
((
struct
kernel_vm86_regs
*
)
regs
,
error_code
);
handle_vm86_fault
((
struct
kernel_vm86_regs
*
)
regs
,
error_code
);
return
;
return
;
...
...
arch/i386/mm/fault.c
View file @
f76ee77d
...
@@ -223,7 +223,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long error_code)
...
@@ -223,7 +223,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long error_code)
__asm__
(
"movl %%cr2,%0"
:
"=r"
(
address
));
__asm__
(
"movl %%cr2,%0"
:
"=r"
(
address
));
/* It's safe to allow irq's after cr2 has been saved */
/* It's safe to allow irq's after cr2 has been saved */
if
(
regs
->
eflags
&
X86_EFLAGS_IF
)
if
(
regs
->
eflags
&
(
X86_EFLAGS_IF
|
VM_MASK
)
)
local_irq_enable
();
local_irq_enable
();
tsk
=
current
;
tsk
=
current
;
...
...
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