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
e9213c78
Commit
e9213c78
authored
Jun 15, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: rework user access functions
parent
2d38a917
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
98 deletions
+132
-98
arch/ppc64/lib/string.S
arch/ppc64/lib/string.S
+3
-6
include/asm-ppc64/uaccess.h
include/asm-ppc64/uaccess.h
+129
-92
No files found.
arch/ppc64/lib/string.S
View file @
e9213c78
...
...
@@ -200,6 +200,7 @@ _GLOBAL(__clear_user)
.
llong
8
b
,
92
b
.
text
/*
r3
=
dst
,
r4
=
src
,
r5
=
count
*/
_GLOBAL
(
__strncpy_from_user
)
addi
r6
,
r3
,-
1
addi
r4
,
r4
,-
1
...
...
@@ -222,14 +223,10 @@ _GLOBAL(__strncpy_from_user)
.
llong
1
b
,
99
b
.
text
/*
r3
=
str
,
r4
=
len
(>
0
)
,
r5
=
top
(
highest
addr
)
*/
/*
r3
=
str
,
r4
=
len
(>
0
)
*/
_GLOBAL
(
__strnlen_user
)
addi
r7
,
r3
,-
1
subf
r6
,
r7
,
r5
/*
top
+
1
-
str
*/
cmplw
0
,
r4
,
r6
bge
0
f
mr
r6
,
r4
0
:
mtctr
r6
/*
ctr
=
min
(
len
,
top
-
str
)
*/
mtctr
r4
/*
ctr
=
len
*/
1
:
lbzu
r0
,
1
(
r7
)
/*
get
next
byte
*/
cmpwi
0
,
r0
,
0
bdnzf
2
,
1
b
/*
loop
if
--
ctr
!=
0
&&
byte
!=
0
*/
...
...
include/asm-ppc64/uaccess.h
View file @
e9213c78
This diff is collapsed.
Click to expand it.
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