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
887f1ae3
Commit
887f1ae3
authored
Sep 21, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Look up the trap vector for the page fault notifier.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
4c59e294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
arch/sh/mm/fault_32.c
arch/sh/mm/fault_32.c
+4
-9
No files found.
arch/sh/mm/fault_32.c
View file @
887f1ae3
...
...
@@ -21,26 +21,21 @@
#include <asm/tlbflush.h>
#include <asm/kgdb.h>
#ifdef CONFIG_KPROBES
static
inline
int
notify_page_fault
(
struct
pt_regs
*
regs
,
int
trap
)
{
int
ret
=
0
;
#ifdef CONFIG_KPROBES
if
(
!
user_mode
(
regs
))
{
preempt_disable
();
if
(
kprobe_running
()
&&
kprobe_fault_handler
(
regs
,
trap
))
ret
=
1
;
preempt_enable
();
}
#endif
return
ret
;
}
#else
static
inline
int
notify_page_fault
(
struct
pt_regs
*
regs
,
int
trap
)
{
return
0
;
}
#endif
/*
* This routine handles page faults. It determines the address,
...
...
@@ -58,7 +53,7 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
int
fault
;
siginfo_t
info
;
if
(
notify_page_fault
(
regs
,
writeaccess
))
if
(
notify_page_fault
(
regs
,
lookup_exception_vector
()
))
return
;
#ifdef CONFIG_SH_KGDB
...
...
@@ -293,7 +288,7 @@ asmlinkage int __kprobes __do_page_fault(struct pt_regs *regs,
pte_t
*
pte
;
pte_t
entry
;
if
(
notify_page_fault
(
regs
,
writeaccess
))
if
(
notify_page_fault
(
regs
,
lookup_exception_vector
()
))
return
0
;
#ifdef CONFIG_SH_KGDB
...
...
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