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
ce0f1eef
Commit
ce0f1eef
authored
Jul 24, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc-decouple-page-fault-logic.patch
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
6408db29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
arch/powerpc/mm/fault.c
arch/powerpc/mm/fault.c
+1
-1
arch/powerpc/mm/highmem.c
arch/powerpc/mm/highmem.c
+2
-0
No files found.
arch/powerpc/mm/fault.c
View file @
ce0f1eef
...
@@ -159,7 +159,7 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address,
...
@@ -159,7 +159,7 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address,
}
}
#endif
/* !(CONFIG_4xx || CONFIG_BOOKE)*/
#endif
/* !(CONFIG_4xx || CONFIG_BOOKE)*/
if
(
in_atomic
()
||
mm
==
NULL
)
{
if
(
in_atomic
()
||
mm
==
NULL
||
current
->
pagefault_disabled
)
{
if
(
!
user_mode
(
regs
))
if
(
!
user_mode
(
regs
))
return
SIGSEGV
;
return
SIGSEGV
;
/* in_atomic() in user mode is really bad,
/* in_atomic() in user mode is really bad,
...
...
arch/powerpc/mm/highmem.c
View file @
ce0f1eef
...
@@ -35,6 +35,7 @@ void *kmap_atomic_prot(struct page *page, enum km_type type, pgprot_t prot)
...
@@ -35,6 +35,7 @@ void *kmap_atomic_prot(struct page *page, enum km_type type, pgprot_t prot)
unsigned
long
vaddr
;
unsigned
long
vaddr
;
/* even !CONFIG_PREEMPT needs this, for in_atomic in do_page_fault */
/* even !CONFIG_PREEMPT needs this, for in_atomic in do_page_fault */
preempt_disable
();
pagefault_disable
();
pagefault_disable
();
if
(
!
PageHighMem
(
page
))
if
(
!
PageHighMem
(
page
))
return
page_address
(
page
);
return
page_address
(
page
);
...
@@ -73,5 +74,6 @@ void kunmap_atomic(void *kvaddr, enum km_type type)
...
@@ -73,5 +74,6 @@ void kunmap_atomic(void *kvaddr, enum km_type type)
local_flush_tlb_page
(
NULL
,
vaddr
);
local_flush_tlb_page
(
NULL
,
vaddr
);
#endif
#endif
pagefault_enable
();
pagefault_enable
();
preempt_enable
();
}
}
EXPORT_SYMBOL
(
kunmap_atomic
);
EXPORT_SYMBOL
(
kunmap_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