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
Kirill Smelkov
linux
Commits
10531a52
Commit
10531a52
authored
Oct 29, 2002
by
Brian Gerst
Committed by
Christoph Hellwig
Oct 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove __verify_write from sh arch
It was copied from i386 and is unused.
parent
83e1ce3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
52 deletions
+0
-52
arch/sh/mm/fault.c
arch/sh/mm/fault.c
+0
-52
No files found.
arch/sh/mm/fault.c
View file @
10531a52
...
...
@@ -29,58 +29,6 @@
extern
void
die
(
const
char
*
,
struct
pt_regs
*
,
long
);
/*
* Ugly, ugly, but the goto's result in better assembly..
*/
int
__verify_write
(
const
void
*
addr
,
unsigned
long
size
)
{
struct
vm_area_struct
*
vma
;
unsigned
long
start
=
(
unsigned
long
)
addr
;
if
(
!
size
)
return
1
;
vma
=
find_vma
(
current
->
mm
,
start
);
if
(
!
vma
)
goto
bad_area
;
if
(
vma
->
vm_start
>
start
)
goto
check_stack
;
good_area:
if
(
!
(
vma
->
vm_flags
&
VM_WRITE
))
goto
bad_area
;
size
--
;
size
+=
start
&
~
PAGE_MASK
;
size
>>=
PAGE_SHIFT
;
start
&=
PAGE_MASK
;
for
(;;)
{
if
(
handle_mm_fault
(
current
->
mm
,
vma
,
start
,
1
)
<=
0
)
goto
bad_area
;
if
(
!
size
)
break
;
size
--
;
start
+=
PAGE_SIZE
;
if
(
start
<
vma
->
vm_end
)
continue
;
vma
=
vma
->
vm_next
;
if
(
!
vma
||
vma
->
vm_start
!=
start
)
goto
bad_area
;
if
(
!
(
vma
->
vm_flags
&
VM_WRITE
))
goto
bad_area
;;
}
return
1
;
check_stack:
if
(
!
(
vma
->
vm_flags
&
VM_GROWSDOWN
))
goto
bad_area
;
if
(
expand_stack
(
vma
,
start
)
==
0
)
goto
good_area
;
bad_area:
return
0
;
}
/*
* This routine handles page faults. It determines the address,
* and the problem, and then passes it off to one of the appropriate
...
...
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