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
015d6a71
Commit
015d6a71
authored
Feb 26, 2007
by
Catalin Marinas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the fault processing for the MMU-less case
Signed-off-by:
Catalin Marinas
<
catalin.marinas@arm.com
>
parent
8a0f829e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
arch/arm/mm/fault.c
arch/arm/mm/fault.c
+22
-0
No files found.
arch/arm/mm/fault.c
View file @
015d6a71
...
...
@@ -21,6 +21,7 @@
#include "fault.h"
#ifdef CONFIG_MMU
/*
* This is useful to dump out the page tables associated with
* 'addr' in mm 'mm'.
...
...
@@ -72,6 +73,10 @@ void show_pte(struct mm_struct *mm, unsigned long addr)
printk
(
"
\n
"
);
}
#else
/* CONFIG_MMU */
void
show_pte
(
struct
mm_struct
*
mm
,
unsigned
long
addr
)
{
}
#endif
/* CONFIG_MMU */
/*
* Oops. The kernel tried to access some page that wasn't present.
...
...
@@ -146,6 +151,7 @@ void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
__do_kernel_fault
(
mm
,
addr
,
fsr
,
regs
);
}
#ifdef CONFIG_MMU
#define VM_FAULT_BADMAP (-20)
#define VM_FAULT_BADACCESS (-21)
...
...
@@ -298,6 +304,13 @@ no_context:
__do_kernel_fault
(
mm
,
addr
,
fsr
,
regs
);
return
0
;
}
#else
/* CONFIG_MMU */
static
int
do_page_fault
(
unsigned
long
addr
,
unsigned
int
fsr
,
struct
pt_regs
*
regs
)
{
return
0
;
}
#endif
/* CONFIG_MMU */
/*
* First Level Translation Fault Handler
...
...
@@ -316,6 +329,7 @@ no_context:
* interrupt or a critical region, and should only copy the information
* from the master page table, nothing more.
*/
#ifdef CONFIG_MMU
static
int
do_translation_fault
(
unsigned
long
addr
,
unsigned
int
fsr
,
struct
pt_regs
*
regs
)
...
...
@@ -354,6 +368,14 @@ bad_area:
do_bad_area
(
addr
,
fsr
,
regs
);
return
0
;
}
#else
/* CONFIG_MMU */
static
int
do_translation_fault
(
unsigned
long
addr
,
unsigned
int
fsr
,
struct
pt_regs
*
regs
)
{
return
0
;
}
#endif
/* CONFIG_MMU */
/*
* Some section permission faults need to be handled gracefully.
...
...
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