Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
9a55d5ea
Commit
9a55d5ea
authored
Jul 24, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86-decouple-page-fault-logic
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
5e918aee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
arch/x86/mm/fault.c
arch/x86/mm/fault.c
+1
-1
arch/x86/mm/iomap_32.c
arch/x86/mm/iomap_32.c
+2
-0
No files found.
arch/x86/mm/fault.c
View file @
9a55d5ea
...
...
@@ -1032,7 +1032,7 @@ do_page_fault(struct pt_regs *regs, unsigned long error_code)
* If we're in an interrupt, have no user context or are running
* in an atomic region then we must not take the fault:
*/
if
(
unlikely
(
in_atomic
()
||
!
mm
))
{
if
(
unlikely
(
in_atomic
()
||
!
mm
||
current
->
pagefault_disabled
))
{
bad_area_nosemaphore
(
regs
,
error_code
,
address
);
return
;
}
...
...
arch/x86/mm/iomap_32.c
View file @
9a55d5ea
...
...
@@ -37,6 +37,7 @@ void *kmap_atomic_prot_pfn(unsigned long pfn, enum km_type type, pgprot_t prot)
enum
fixed_addresses
idx
;
unsigned
long
vaddr
;
preempt_disable
();
pagefault_disable
();
debug_kmap_atomic
(
type
);
...
...
@@ -83,5 +84,6 @@ iounmap_atomic(void *kvaddr, enum km_type type)
kpte_clear_flush
(
kmap_pte
-
idx
,
vaddr
);
pagefault_enable
();
preempt_enable
();
}
EXPORT_SYMBOL_GPL
(
iounmap_atomic
);
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